Skip to content

Commit 856b01e

Browse files
committed
Make the theme for choose account and choose account type dialogs same.
Contacts app uses a custom account picker which calls the system account picker when an account needs to be added. The system accout picker invokes choose accout type dialog which overlays over the system acccount picker. Because these two dialog boxes use different themes, he one behind is wider than the one in foreground and ends up looking like a thin black strip protruding from the two sides. Bug: 6980517 Change-Id: Ia8b23767d995dcbe1a58087cb4bfbee140c2c744
1 parent 96a8bb6 commit 856b01e

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

core/res/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,7 @@
20972097

20982098
<activity android:name="android.accounts.ChooseAccountTypeActivity"
20992099
android:excludeFromRecents="true"
2100-
android:theme="@android:style/Theme.Holo.DialogWhenLarge.NoActionBar"
2100+
android:theme="@android:style/Theme.Holo.Dialog"
21012101
android:label="@string/choose_account_label"
21022102
android:process=":ui">
21032103
</activity>

core/res/res/layout/choose_account_type.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,7 @@
2020
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2121
android:layout_width="match_parent"
2222
android:layout_height="match_parent"
23-
android:orientation="vertical"
24-
android:paddingStart="16dip"
25-
android:paddingEnd="16dip">
26-
27-
<TextView android:id="@+id/title"
28-
android:layout_width="wrap_content"
29-
android:layout_height="wrap_content"
30-
android:textAppearance="?android:attr/textAppearanceMedium"
31-
android:layout_gravity="start"
32-
android:text="@string/add_account_label"
33-
android:paddingTop="16dip"
34-
android:paddingBottom="16dip"
35-
android:textColor="@android:color/holo_blue_light"
36-
/>
23+
android:orientation="vertical">
3724

3825
<View android:layout_height="3dip"
3926
android:layout_width="match_parent"

0 commit comments

Comments
 (0)