Cherish: Show the summary for flash on call
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -80,6 +80,7 @@ public class NotificationSettings extends SettingsPreferenceFragment implements
|
||||
|
||||
mFlashOnCall = (SystemSettingListPreference)
|
||||
findPreference(PREF_FLASH_ON_CALL);
|
||||
mFlashOnCall.setSummary(mFlashOnCall.getEntries()[value]);
|
||||
mFlashOnCall.setOnPreferenceChangeListener(this);
|
||||
|
||||
mEdgeLightning = (SystemSettingMasterSwitchPreference)
|
||||
@@ -105,6 +106,7 @@ public class NotificationSettings extends SettingsPreferenceFragment implements
|
||||
int value = Integer.parseInt((String) newValue);
|
||||
Settings.System.putInt(resolver,
|
||||
Settings.System.FLASHLIGHT_ON_CALL, value);
|
||||
mFlashOnCall.setSummary(mFlashOnCall.getEntries()[value]);
|
||||
mFlashOnCallIgnoreDND.setVisible(value > 1);
|
||||
mFlashOnCallRate.setVisible(value != 0);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user