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