mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
just moving a function up
This commit is contained in:
@@ -227,6 +227,15 @@ class MainActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("NewApi")
|
||||||
|
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
||||||
|
super.onActivityResult(requestCode, resultCode, resultData)
|
||||||
|
isAskingPermissions = false
|
||||||
|
if (requestCode == MANAGE_STORAGE_RC && isRPlus()) {
|
||||||
|
actionOnPermission?.invoke(Environment.isExternalStorageManager())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun restorePath(path: String) {
|
private fun restorePath(path: String) {
|
||||||
if (!mWasProtectionHandled) {
|
if (!mWasProtectionHandled) {
|
||||||
handleAppPasswordProtection {
|
handleAppPasswordProtection {
|
||||||
@@ -346,15 +355,6 @@ class MainActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("NewApi")
|
|
||||||
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
|
||||||
super.onActivityResult(requestCode, resultCode, resultData)
|
|
||||||
isAskingPermissions = false
|
|
||||||
if (requestCode == MANAGE_STORAGE_RC && isRPlus()) {
|
|
||||||
actionOnPermission?.invoke(Environment.isExternalStorageManager())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun initFileManager(refreshRecents: Boolean) {
|
private fun initFileManager(refreshRecents: Boolean) {
|
||||||
if (intent.action == Intent.ACTION_VIEW && intent.data != null) {
|
if (intent.action == Intent.ACTION_VIEW && intent.data != null) {
|
||||||
val data = intent.data
|
val data = intent.data
|
||||||
|
Reference in New Issue
Block a user