Add version detection for certain settings

This commit is contained in:
topjohnwu 2016-10-18 21:45:35 +08:00
parent 92df7747b2
commit 906ae730e9

View File

@ -88,9 +88,10 @@ public class SettingsActivity extends AppCompatActivity {
themePreference.setSummary(themePreference.getValue());
if (MagiskFragment.magiskVersion == -1) {
busyboxPreference.setEnabled(false);
if (MagiskFragment.magiskVersion < 8) {
magiskhidePreference.setEnabled(false);
} else if (MagiskFragment.magiskVersion < 7) {
busyboxPreference.setEnabled(false);
} else {
busyboxPreference.setEnabled(true);
magiskhidePreference.setEnabled(true);