mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-06 02:46:57 +00:00
Merge "Fixing notification dots settings not updated properly" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
20efbbbb1c
@@ -187,7 +187,7 @@ public class RecentsAnimationDeviceState implements
|
||||
SettingsCache.OnChangeListener onChangeListener =
|
||||
enabled -> mIsOneHandedModeEnabled = enabled;
|
||||
settingsCache.register(oneHandedUri, onChangeListener);
|
||||
settingsCache.dispatchOnChange(oneHandedUri);
|
||||
mIsOneHandedModeEnabled = settingsCache.getValue(oneHandedUri);
|
||||
runOnDestroy(() -> settingsCache.unregister(oneHandedUri, onChangeListener));
|
||||
} else {
|
||||
mIsOneHandedModeEnabled = false;
|
||||
@@ -199,7 +199,7 @@ public class RecentsAnimationDeviceState implements
|
||||
SettingsCache.OnChangeListener onChangeListener =
|
||||
enabled -> mIsSwipeToNotificationEnabled = enabled;
|
||||
settingsCache.register(swipeBottomNotificationUri, onChangeListener);
|
||||
settingsCache.dispatchOnChange(swipeBottomNotificationUri);
|
||||
mIsSwipeToNotificationEnabled = settingsCache.getValue(swipeBottomNotificationUri);
|
||||
runOnDestroy(() -> settingsCache.unregister(swipeBottomNotificationUri, onChangeListener));
|
||||
|
||||
Uri setupCompleteUri = Settings.Secure.getUriFor(Settings.Secure.USER_SETUP_COMPLETE);
|
||||
|
||||
@@ -80,7 +80,7 @@ public class SettingsChangeLogger implements
|
||||
SettingsCache mSettingsCache = SettingsCache.INSTANCE.get(context);
|
||||
mSettingsCache.register(NOTIFICATION_BADGING_URI,
|
||||
this::onNotificationDotsChanged);
|
||||
mSettingsCache.dispatchOnChange(NOTIFICATION_BADGING_URI);
|
||||
onNotificationDotsChanged(mSettingsCache.getValue(NOTIFICATION_BADGING_URI));
|
||||
}
|
||||
|
||||
private static ArrayMap<String, LoggablePref> loadPrefKeys(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user