diff options
author | LuK1337 <priv.luk@gmail.com> | 2015-11-14 12:15:06 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-11-16 09:59:44 -0800 |
commit | 3c1d84924359e14ccb8ce4f52fc784f93d1610f3 (patch) | |
tree | 8c6193340c6a0414a697b1a49062cdd2bb36305c /src/com/android/settings/profiles | |
parent | b1ecf934285b2f93a90af0138707ce41c3ea2ae4 (diff) | |
download | packages_apps_Settings-3c1d84924359e14ccb8ce4f52fc784f93d1610f3.zip packages_apps_Settings-3c1d84924359e14ccb8ce4f52fc784f93d1610f3.tar.gz packages_apps_Settings-3c1d84924359e14ccb8ce4f52fc784f93d1610f3.tar.bz2 |
Fix profiles toggle
* Also implement CMBaseSystemSettingSwitchBar used for it.
Change-Id: I1109cf06066a6c5f57044a484b0af6bbb38dc1b1
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r-- | src/com/android/settings/profiles/ProfilesSettings.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/settings/profiles/ProfilesSettings.java b/src/com/android/settings/profiles/ProfilesSettings.java index cf6c161..957cf82 100644 --- a/src/com/android/settings/profiles/ProfilesSettings.java +++ b/src/com/android/settings/profiles/ProfilesSettings.java @@ -50,13 +50,13 @@ import com.android.settings.SettingsActivity; import com.android.settings.SettingsPreferenceFragment; import com.android.settings.SubSettings; import com.android.settings.Utils; -import com.android.settings.cyanogenmod.BaseSystemSettingSwitchBar; +import com.android.settings.cyanogenmod.CMBaseSystemSettingSwitchBar; import cyanogenmod.providers.CMSettings; import java.util.UUID; public class ProfilesSettings extends SettingsPreferenceFragment - implements BaseSystemSettingSwitchBar.SwitchBarChangeCallback { + implements CMBaseSystemSettingSwitchBar.SwitchBarChangeCallback { private static final String TAG = "ProfilesSettings"; public static final String EXTRA_PROFILE = "Profile"; @@ -69,7 +69,7 @@ public class ProfilesSettings extends SettingsPreferenceFragment private final BroadcastReceiver mReceiver; private ProfileManager mProfileManager; - private BaseSystemSettingSwitchBar mProfileEnabler; + private CMBaseSystemSettingSwitchBar mProfileEnabler; private ViewPager mViewPager; private TextView mEmptyText; @@ -158,7 +158,7 @@ public class ProfilesSettings extends SettingsPreferenceFragment public void onStart() { super.onStart(); final SettingsActivity activity = (SettingsActivity) getActivity(); - mProfileEnabler = new BaseSystemSettingSwitchBar(activity, activity.getSwitchBar(), + mProfileEnabler = new CMBaseSystemSettingSwitchBar(activity, activity.getSwitchBar(), CMSettings.System.SYSTEM_PROFILES_ENABLED, true, this); } |