summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings
diff options
context:
space:
mode:
authorAnkit Gupta <agupta@cyngn.com>2016-05-03 13:41:41 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-05-05 15:07:29 -0700
commitf252c25166ab1585a2628ddbb962f0603165e5f4 (patch)
treeb5b3134251302a4d92222eb24fd5184f4cf3a8aa /src/com/android/settings
parent9984dc1bf13aa721e45c2f1d1cadf75d1e871ea7 (diff)
downloadpackages_apps_Settings-f252c25166ab1585a2628ddbb962f0603165e5f4.zip
packages_apps_Settings-f252c25166ab1585a2628ddbb962f0603165e5f4.tar.gz
packages_apps_Settings-f252c25166ab1585a2628ddbb962f0603165e5f4.tar.bz2
Settings: sync qs invert color with color inversion in Settings
Color inversion in settings is not consistent with the quick settings tiles for the inverted color. This patch registers the invert color settings variable to content resolver to apply any change to it from either qs tiles or settings menu. Change-Id: Ib1433238d4985e930f3a1c650198dbeb05ccba52 Issue-id: FEIJ-164
Diffstat (limited to 'src/com/android/settings')
-rw-r--r--src/com/android/settings/accessibility/AccessibilitySettings.java2
-rw-r--r--src/com/android/settings/accessibility/SettingsContentObserver.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/accessibility/AccessibilitySettings.java b/src/com/android/settings/accessibility/AccessibilitySettings.java
index 27f6768..1dd5508 100644
--- a/src/com/android/settings/accessibility/AccessibilitySettings.java
+++ b/src/com/android/settings/accessibility/AccessibilitySettings.java
@@ -160,7 +160,7 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements
@Override
public void onChange(boolean selfChange, Uri uri) {
loadInstalledServices();
- updateServicesPreferences();
+ updateAllPreferences();
}
};
diff --git a/src/com/android/settings/accessibility/SettingsContentObserver.java b/src/com/android/settings/accessibility/SettingsContentObserver.java
index c3baec5..383f54c 100644
--- a/src/com/android/settings/accessibility/SettingsContentObserver.java
+++ b/src/com/android/settings/accessibility/SettingsContentObserver.java
@@ -32,6 +32,8 @@ abstract class SettingsContentObserver extends ContentObserver {
Settings.Secure.ACCESSIBILITY_ENABLED), false, this);
contentResolver.registerContentObserver(Settings.Secure.getUriFor(
Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES), false, this);
+ contentResolver.registerContentObserver(Settings.Secure.getUriFor(
+ Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED), false, this);
}
public void unregister(ContentResolver contentResolver) {