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 /cm/lib/main | |
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
Diffstat (limited to 'cm/lib/main')
-rw-r--r-- | cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileTriggerHelper.java | 9 |
1 files changed, 5 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() { |