correcting a function
This commit is contained in:
parent
1d8c45643f
commit
888d2758b6
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
|
|||
}
|
||||
|
||||
private fun tryInitFileManager() {
|
||||
if (hasStoragePermission(applicationContext)) {
|
||||
if (hasStoragePermission()) {
|
||||
initRootFileManager()
|
||||
} else {
|
||||
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE), STORAGE_PERMISSION)
|
||||
|
|
Loading…
Reference in a new issue