From 3c1d84924359e14ccb8ce4f52fc784f93d1610f3 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sat, 14 Nov 2015 12:15:06 +0100 Subject: Fix profiles toggle * Also implement CMBaseSystemSettingSwitchBar used for it. Change-Id: I1109cf06066a6c5f57044a484b0af6bbb38dc1b1 --- src/com/android/settings/profiles/ProfilesSettings.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/com/android/settings/profiles') 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); } -- cgit v1.1