Remove dynamic summaries for "On the lockscreen"

Bug:36101902
Test: make RunSettingsRoboTests
Change-Id: Ie004f07f4c543a99c2b2ad1e5d7c8b2ef49246d5
This commit is contained in:
Matthew Fritze
2017-05-11 08:54:31 -07:00
parent 8fc602fed8
commit e2cb72fa7f
3 changed files with 4 additions and 3 deletions

View File

@@ -31,7 +31,7 @@
<com.android.settings.notification.RestrictedDropDownPreference <com.android.settings.notification.RestrictedDropDownPreference
android:key="lock_screen_notifications" android:key="lock_screen_notifications"
android:title="@string/lock_screen_notifications_title" android:title="@string/lock_screen_notifications_title"
android:summary="%s"/> android:summary="@string/summary_placeholder"/>
<SwitchPreference <SwitchPreference
android:key="gesture_swipe_down_fingerprint" android:key="gesture_swipe_down_fingerprint"
@@ -45,7 +45,7 @@
<com.android.settings.notification.RestrictedDropDownPreference <com.android.settings.notification.RestrictedDropDownPreference
android:key="lock_screen_notifications_profile" android:key="lock_screen_notifications_profile"
android:title="@string/lock_screen_notifications_title" android:title="@string/lock_screen_notifications_title"
android:summary="%s"/> android:summary="@string/summary_placeholder"/>
</PreferenceCategory> </PreferenceCategory>

View File

@@ -21,7 +21,7 @@
<com.android.settings.notification.RestrictedDropDownPreference <com.android.settings.notification.RestrictedDropDownPreference
android:key="lock_screen_notifications" android:key="lock_screen_notifications"
android:title="@string/lock_screen_notifications_title" android:title="@string/lock_screen_notifications_title"
android:summary="%s"/> android:summary="@string/summary_placeholder"/>
<com.android.settingslib.RestrictedSwitchPreference <com.android.settingslib.RestrictedSwitchPreference
android:key="add_users_when_locked" android:key="add_users_when_locked"

View File

@@ -281,6 +281,7 @@ public class LockScreenNotificationPreferenceController extends PreferenceContro
return; return;
} }
mLockscreenSelectedValue = getSummaryResource(); mLockscreenSelectedValue = getSummaryResource();
mLockscreen.setSummary("%s");
mLockscreen.setValue(Integer.toString(mLockscreenSelectedValue)); mLockscreen.setValue(Integer.toString(mLockscreenSelectedValue));
} }