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:
parent
038ca05460
commit
409a41d9a7
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue