diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-10-26 15:37:55 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-26 15:37:55 -0700 |
commit | ce2636010c8f13268b374dd97f7da71f71403566 (patch) | |
tree | 56beb1c06b43cc6dbc6353b8d46b46c5cd2a1d9d | |
parent | 49b98823f6e132a1224d38995254c7744d6eb074 (diff) | |
download | vendor_cmsdk-ce2636010c8f13268b374dd97f7da71f71403566.zip vendor_cmsdk-ce2636010c8f13268b374dd97f7da71f71403566.tar.gz vendor_cmsdk-ce2636010c8f13268b374dd97f7da71f71403566.tar.bz2 |
cmsdk: Point at cmsettings for system profiles.
Change-Id: I61497111f1bf1873554c4185b4424662dcb8c7e5
-rw-r--r-- | cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileTriggerHelper.java | 9 | ||||
-rw-r--r-- | src/java/cyanogenmod/providers/CMSettings.java | 6 |
2 files changed, 11 insertions, 4 deletions
diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileTriggerHelper.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileTriggerHelper.java index 04b9f40..054dfed 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileTriggerHelper.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileTriggerHelper.java @@ -26,11 +26,12 @@ import android.net.wifi.WifiManager; import android.net.wifi.WifiSsid; import android.net.wifi.WifiInfo; import android.os.Handler; -import android.provider.Settings; + import android.util.Log; import cyanogenmod.app.Profile; +import cyanogenmod.providers.CMSettings; import org.cyanogenmod.platform.internal.ProfileManagerService; import java.util.UUID; @@ -78,9 +79,9 @@ public class ProfileTriggerHelper extends BroadcastReceiver { // mIntentFilter.addAction(AudioManager.A2DP_ROUTE_CHANGED_ACTION); updateEnabled(); - /* mContext.getContentResolver().registerContentObserver( - Settings.System.getUriFor(Settings.System.SYSTEM_PROFILES_ENABLED), false, - mSettingsObserver); */ + mContext.getContentResolver().registerContentObserver( + CMSettings.System.getUriFor(CMSettings.System.SYSTEM_PROFILES_ENABLED), false, + mSettingsObserver); } public void updateEnabled() { diff --git a/src/java/cyanogenmod/providers/CMSettings.java b/src/java/cyanogenmod/providers/CMSettings.java index 731649b..a08254f 100644 --- a/src/java/cyanogenmod/providers/CMSettings.java +++ b/src/java/cyanogenmod/providers/CMSettings.java @@ -595,6 +595,12 @@ public final class CMSettings { */ public static final String NOTIFICATION_PLAY_QUEUE = "notification_play_queue"; + /** + * Show the pending notification counts as overlays on the status bar + * @hide + */ + public static final String SYSTEM_PROFILES_ENABLED = "system_profiles_enabled"; + // endregion } |