OSDN Git Service

Settings: Remove fixed dropdown width from "From" pref.
authorJohn Spurlock <jspurlock@google.com>
Wed, 10 Sep 2014 21:49:28 +0000 (17:49 -0400)
committerJohn Spurlock <jspurlock@google.com>
Wed, 10 Sep 2014 21:49:28 +0000 (17:49 -0400)
Bug:17457729
Change-Id: I99d294f43211765e410af53e87bb96b06715c0e3

res/values/dimens.xml
src/com/android/settings/notification/ZenModeSettings.java

index afbd5c6..0b5f58a 100755 (executable)
@@ -91,7 +91,6 @@
     <dimen name="notification_app_icon_size">64dp</dimen>
     <dimen name="notification_app_icon_badge_size">20dp</dimen>
     <dimen name="notification_app_icon_badge_margin">4dp</dimen>
-    <dimen name="zen_mode_dropdown_width">160dp</dimen>
     <dimen name="zen_downtime_checkbox_padding">7dp</dimen>
     <dimen name="zen_downtime_margin">17dp</dimen>
 
index d26b128..091e121 100644 (file)
@@ -202,7 +202,6 @@ public class ZenModeSettings extends SettingsPreferenceFragment implements Index
         });
 
         mStarred = (DropDownPreference) important.findPreference(KEY_STARRED);
-        mStarred.setDropDownWidth(R.dimen.zen_mode_dropdown_width);
         mStarred.addItem(R.string.zen_mode_from_anyone, ZenModeConfig.SOURCE_ANYONE);
         mStarred.addItem(R.string.zen_mode_from_starred, ZenModeConfig.SOURCE_STAR);
         mStarred.addItem(R.string.zen_mode_from_contacts, ZenModeConfig.SOURCE_CONTACT);