correcting a function

This commit is contained in:
tibbi 2016-11-11 22:45:26 +01:00
parent 1d8c45643f
commit 888d2758b6

View file

@ -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)