mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
add an activity in RootHelpers constructor to avoid passing it around
This commit is contained in:
@ -277,7 +277,7 @@ class MainActivity : SimpleActivity() {
|
||||
Thread {
|
||||
config.isRootAvailable = RootTools.isRootAvailable()
|
||||
if (config.isRootAvailable && config.enableRootAccess) {
|
||||
RootHelpers().askRootIfNeeded(this) {
|
||||
RootHelpers(this).askRootIfNeeded {
|
||||
config.enableRootAccess = it
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user