mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-04 16:11:46 +07:00
Refactor: Remove superfluous postCrashHandlingRunnable (#6974)
This commit is contained in:
parent
067be5a292
commit
e4e6b842cb
@ -81,14 +81,12 @@ class CustomFileLocationHelperAndroid(private val activity: Activity) : CustomFi
|
||||
}
|
||||
|
||||
fun onActivityResult(requestCode: Int, data: Intent?) {
|
||||
val callback = synchronized(this) {
|
||||
val activityCallback = synchronized(this) {
|
||||
val index = callbacks.indexOfFirst { it.requestCode == requestCode }
|
||||
if (index == -1) return
|
||||
callbacks.removeAt(index)
|
||||
}
|
||||
postCrashHandlingRunnable {
|
||||
callback.callback(data?.data)
|
||||
}
|
||||
activityCallback.callback(data?.data)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user