Use proper style for account spinner
- also removes the "Accounts" header as requested by UX
- also tightens up width on tablets a little.
Bug: 5160847
Change-Id: Ie8da1f9d2ec0e53421a435897fc9bb50991a20b6
diff --git a/res/layout/action_bar_spinner.xml b/res/layout/action_bar_spinner.xml
index 2c132d6..53f2cd6 100644
--- a/res/layout/action_bar_spinner.xml
+++ b/res/layout/action_bar_spinner.xml
@@ -22,7 +22,7 @@
>
<RelativeLayout
android:id="@+id/account_spinner"
- style="?android:attr/dropDownSpinnerStyle"
+ style="?android:attr/actionDropDownStyle"
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1"
diff --git a/res/values-sw600dp/styles.xml b/res/values-sw600dp/styles.xml
index 05ad1c7..d1a2a39 100644
--- a/res/values-sw600dp/styles.xml
+++ b/res/values-sw600dp/styles.xml
@@ -134,7 +134,7 @@
</style>
<style name="action_bar_custom_view">
- <item name="android:layout_width">420dip</item>
+ <item name="android:layout_width">350dip</item>
<item name="android:layout_height">match_parent</item>
</style>
diff --git a/src/com/android/email/activity/AccountSelectorAdapter.java b/src/com/android/email/activity/AccountSelectorAdapter.java
index 71513bd..a06fe8b 100644
--- a/src/com/android/email/activity/AccountSelectorAdapter.java
+++ b/src/com/android/email/activity/AccountSelectorAdapter.java
@@ -330,10 +330,6 @@
int accountPosition = UNKNOWN_POSITION;
accountCursor.moveToPosition(-1);
- // Add a header for the accounts
- addHeaderRow(matrixCursor, mContext.getString(
- R.string.mailbox_list_account_selector_account_header));
-
matrixCursor.mAccountCount = accountCursor.getCount();
int totalUnread = 0;
int currentPosition = 1;