Don't disable preview controls if no permissions

Since moving the preview when permissions are not granted no longer
displays a torrent of permission requests, we don't need to disable it
when permissions (either root or overlay) are not granted.
This commit is contained in:
Stephen Michel 2022-08-13 19:02:02 -04:00
parent 038ca05460
commit 409a41d9a7
1 changed files with 0 additions and 7 deletions

View File

@ -39,7 +39,6 @@ import com.jmstudios.redmoon.Profile
import com.jmstudios.redmoon.R
import org.greenrobot.eventbus.Subscribe
import com.topjohnwu.superuser.Shell
class FilterFragment : PreferenceFragmentCompat() {
//private var hasShownWarningToast = false
@ -78,12 +77,6 @@ class FilterFragment : PreferenceFragmentCompat() {
override fun onStart() {
Log.i("onStart")
super.onStart()
if (Config.useRoot) {
val hasRoot = Shell.rootAccess()
preferenceScreen.setEnabled(hasRoot)
} else {
preferenceScreen.setEnabled(Permission.Overlay.isGranted)
}
EventBus.register(profileSelectorPref)
EventBus.register(this)
}