From ed761c4e743bcad72c23e2d37f479474850a42c8 Mon Sep 17 00:00:00 2001 From: Matthew Fritze Date: Tue, 6 Jun 2017 01:02:19 +0000 Subject: [PATCH] Revert "Revert "Revert "Replace dynamic summary text for SettingPref""" This reverts commit c1e9f8787f02df0d38a9d4e93f7996318fc46355. Reason for revert: There is an issue when dropdown menu text has a '%' sign in it. Despite testing it on my own devices, the bug did not show up immediately. Instead of continuing down this path for OC, we'll just revert this patch, and then as an ugly, band-aid solution, check the summary text for the "%s" substring, and hide it when found. In O-DR onward, we'll look for a more permanent solution. Change-Id: Ia7a04bfb7b09c436dc0f13564f2134a1f0c436e2 Bug: 36101902 Fix: 62211676 --- res/xml/battery_saver_settings.xml | 2 +- res/xml/sound_settings.xml | 4 +- .../fuelgauge/BatterySaverSettings.java | 1 + .../settings/notification/SettingPref.java | 13 ---- .../notification/SettingPrefTest.java | 67 ------------------- 5 files changed, 4 insertions(+), 83 deletions(-) delete mode 100644 tests/robotests/src/com/android/settings/notification/SettingPrefTest.java diff --git a/res/xml/battery_saver_settings.xml b/res/xml/battery_saver_settings.xml index 52f6793d971..1720c73749e 100644 --- a/res/xml/battery_saver_settings.xml +++ b/res/xml/battery_saver_settings.xml @@ -22,6 +22,6 @@ + android:summary="%s" /> diff --git a/res/xml/sound_settings.xml b/res/xml/sound_settings.xml index 33c1b0a3919..d288a9dec37 100644 --- a/res/xml/sound_settings.xml +++ b/res/xml/sound_settings.xml @@ -124,7 +124,7 @@ + android:summary="%s" /> + android:summary="%s" />