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)
|
mFlashOnCall = (SystemSettingListPreference)
|
||||||
findPreference(PREF_FLASH_ON_CALL);
|
findPreference(PREF_FLASH_ON_CALL);
|
||||||
|
mFlashOnCall.setSummary(mFlashOnCall.getEntries()[value]);
|
||||||
mFlashOnCall.setOnPreferenceChangeListener(this);
|
mFlashOnCall.setOnPreferenceChangeListener(this);
|
||||||
|
|
||||||
mEdgeLightning = (SystemSettingMasterSwitchPreference)
|
mEdgeLightning = (SystemSettingMasterSwitchPreference)
|
||||||
@@ -105,6 +106,7 @@ public class NotificationSettings extends SettingsPreferenceFragment implements
|
|||||||
int value = Integer.parseInt((String) newValue);
|
int value = Integer.parseInt((String) newValue);
|
||||||
Settings.System.putInt(resolver,
|
Settings.System.putInt(resolver,
|
||||||
Settings.System.FLASHLIGHT_ON_CALL, value);
|
Settings.System.FLASHLIGHT_ON_CALL, value);
|
||||||
|
mFlashOnCall.setSummary(mFlashOnCall.getEntries()[value]);
|
||||||
mFlashOnCallIgnoreDND.setVisible(value > 1);
|
mFlashOnCallIgnoreDND.setVisible(value > 1);
|
||||||
mFlashOnCallRate.setVisible(value != 0);
|
mFlashOnCallRate.setVisible(value != 0);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user