Disable repack on android 5.0

am does not support -p
This commit is contained in:
vvb2060
2022-06-01 04:27:31 +08:00
committed by John Wu
parent 8186f253e8
commit 9679874874
2 changed files with 3 additions and 5 deletions

View File

@@ -54,10 +54,8 @@ class SettingsViewModel : BaseViewModel(), BaseSettingsItem.Handler {
AppSettings,
UpdateChannel, UpdateChannelUrl, DoHToggle, UpdateChecker, DownloadPath
))
if (Info.env.isActive) {
if (Const.USER_ID == 0) {
if (hidden) list.add(Restore) else list.add(Hide)
}
if (Build.VERSION.SDK_INT >= 22 && Info.env.isActive && Const.USER_ID == 0) {
if (hidden) list.add(Restore) else list.add(Hide)
}
// Magisk