Add version detection for certain settings
This commit is contained in:
parent
92df7747b2
commit
906ae730e9
@ -88,9 +88,10 @@ public class SettingsActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
themePreference.setSummary(themePreference.getValue());
|
themePreference.setSummary(themePreference.getValue());
|
||||||
|
|
||||||
if (MagiskFragment.magiskVersion == -1) {
|
if (MagiskFragment.magiskVersion < 8) {
|
||||||
busyboxPreference.setEnabled(false);
|
|
||||||
magiskhidePreference.setEnabled(false);
|
magiskhidePreference.setEnabled(false);
|
||||||
|
} else if (MagiskFragment.magiskVersion < 7) {
|
||||||
|
busyboxPreference.setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
busyboxPreference.setEnabled(true);
|
busyboxPreference.setEnabled(true);
|
||||||
magiskhidePreference.setEnabled(true);
|
magiskhidePreference.setEnabled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user