File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,15 @@ class MainActivity : SimpleActivity() {
227227 }
228228 }
229229
230+ @SuppressLint(" NewApi" )
231+ override fun onActivityResult (requestCode : Int , resultCode : Int , resultData : Intent ? ) {
232+ super .onActivityResult(requestCode, resultCode, resultData)
233+ isAskingPermissions = false
234+ if (requestCode == MANAGE_STORAGE_RC && isRPlus()) {
235+ actionOnPermission?.invoke(Environment .isExternalStorageManager())
236+ }
237+ }
238+
230239 private fun restorePath (path : String ) {
231240 if (! mWasProtectionHandled) {
232241 handleAppPasswordProtection {
@@ -346,15 +355,6 @@ class MainActivity : SimpleActivity() {
346355 }
347356 }
348357
349- @SuppressLint(" NewApi" )
350- override fun onActivityResult (requestCode : Int , resultCode : Int , resultData : Intent ? ) {
351- super .onActivityResult(requestCode, resultCode, resultData)
352- isAskingPermissions = false
353- if (requestCode == MANAGE_STORAGE_RC && isRPlus()) {
354- actionOnPermission?.invoke(Environment .isExternalStorageManager())
355- }
356- }
357-
358358 private fun initFileManager (refreshRecents : Boolean ) {
359359 if (intent.action == Intent .ACTION_VIEW && intent.data != null ) {
360360 val data = intent.data
You can’t perform that action at this time.
0 commit comments