mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 21:45:27 +00:00
Fix settings crash
This commit is contained in:
parent
a78950e822
commit
02e0955924
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user