cmsdk: Point at cmsettings for system profiles.
Change-Id: I61497111f1bf1873554c4185b4424662dcb8c7e5
This commit is contained in:
parent
49b98823f6
commit
ce2636010c
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue