mirror of
https://github.com/topjohnwu/Magisk
synced 2024-11-13 20:54:12 +01:00
Fix logical error
This commit is contained in:
parent
403a0c770a
commit
d9382f59bf
@ -52,7 +52,7 @@ abstract class BaseActivity : AppCompatActivity() {
|
|||||||
var requestCode: Int
|
var requestCode: Int
|
||||||
do {
|
do {
|
||||||
requestCode = Random.nextInt(Const.ID.MAX_ACTIVITY_RESULT + 1, 1 shl 15)
|
requestCode = Random.nextInt(Const.ID.MAX_ACTIVITY_RESULT + 1, 1 shl 15)
|
||||||
} while (!resultCallbacks.containsKey(requestCode))
|
} while (resultCallbacks.containsKey(requestCode))
|
||||||
resultCallbacks[requestCode] = { result, _ ->
|
resultCallbacks[requestCode] = { result, _ ->
|
||||||
if (result > 0)
|
if (result > 0)
|
||||||
request.onSuccess()
|
request.onSuccess()
|
||||||
|
Loading…
Reference in New Issue
Block a user