Fix settings crash

This commit is contained in:
topjohnwu 2017-08-29 00:37:52 +08:00
parent a78950e822
commit 02e0955924

View File

@ -69,7 +69,7 @@ public class SettingsActivity extends Activity implements Topic.Subscriber {
return new Topic[] { getApplicationContext().reloadActivity };
}
public class SettingsFragment extends PreferenceFragment
public static class SettingsFragment extends PreferenceFragment
implements SharedPreferences.OnSharedPreferenceChangeListener,
Topic.Subscriber {
@ -258,6 +258,10 @@ public class SettingsActivity extends Activity implements Topic.Subscriber {
setSummary();
}
private Shell getShell() {
return Shell.getShell(getActivity());
}
private void setSummary() {
suAccess.setSummary(getResources()
.getStringArray(R.array.su_access)[magiskManager.suAccessState]);