1
mirror of https://github.com/topjohnwu/Magisk synced 2024-11-13 20:54:12 +01:00

Fix logical error

This commit is contained in:
topjohnwu 2020-10-08 00:14:51 -07:00
parent 403a0c770a
commit d9382f59bf

View File

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