Fix logical error
This commit is contained in:
parent
403a0c770a
commit
d9382f59bf
@ -52,7 +52,7 @@ abstract class BaseActivity : AppCompatActivity() {
|
||||
var requestCode: Int
|
||||
do {
|
||||
requestCode = Random.nextInt(Const.ID.MAX_ACTIVITY_RESULT + 1, 1 shl 15)
|
||||
} while (!resultCallbacks.containsKey(requestCode))
|
||||
} while (resultCallbacks.containsKey(requestCode))
|
||||
resultCallbacks[requestCode] = { result, _ ->
|
||||
if (result > 0)
|
||||
request.onSuccess()
|
||||
|
Loading…
Reference in New Issue
Block a user