summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2015-02-06 13:57:41 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-10-27 13:18:39 -0700
commit3eba9c98491dc4867eb9df5dcca1a749583475d7 (patch)
tree438622b1a38f0dec39432f280eec063a3930f726 /src/com/android/settings/profiles
parent61de772b661a7d11b637c491d0d5cb6a05e58bb4 (diff)
downloadpackages_apps_Settings-3eba9c98491dc4867eb9df5dcca1a749583475d7.zip
packages_apps_Settings-3eba9c98491dc4867eb9df5dcca1a749583475d7.tar.gz
packages_apps_Settings-3eba9c98491dc4867eb9df5dcca1a749583475d7.tar.bz2
Settings : Fix profiles crash
Change-Id: I1612926c34fac52c93b813babe5be74b7ebf1e4f
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r--src/com/android/settings/profiles/ProfilesPreference.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/settings/profiles/ProfilesPreference.java b/src/com/android/settings/profiles/ProfilesPreference.java
index 2695144..b5462e1 100644
--- a/src/com/android/settings/profiles/ProfilesPreference.java
+++ b/src/com/android/settings/profiles/ProfilesPreference.java
@@ -26,7 +26,6 @@ import android.widget.TextView;
import com.android.settings.R;
import com.android.settings.SettingsActivity;
import com.android.settings.SettingsPreferenceFragment;
-import com.android.settings.SubSettings;
public class ProfilesPreference extends CheckBoxPreference implements View.OnClickListener {
private static final String TAG = ProfilesPreference.class.getSimpleName();
@@ -131,7 +130,7 @@ public class ProfilesPreference extends CheckBoxPreference implements View.OnCli
// utility method used to start sub activity
private void startProfileConfigActivity() {
- SubSettings pa = (SubSettings) mFragment.getActivity();
+ SettingsActivity pa = (SettingsActivity) mFragment.getActivity();
pa.startPreferencePanel(SetupActionsFragment.class.getCanonicalName(), mSettingsBundle,
R.string.profile_profile_manage, null, null, PROFILE_DETAILS);
}