Cherish: Show the summary for flash on call

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Ido Ben-Hur
2021-12-20 02:46:40 +02:00
committed by Hưng Phan
parent 2b68764181
commit d4994c66d9

View File

@@ -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;