Android-Password-Store/app
Fabian Henneke 23158ce6da
Fix two SMS Autofill crashes (#985)
SMS OTP Autofill currently crashes for two reasons:

1.  Tasks.await has a precondition of not running on the UI thread.
2.  Exceptions thrown from Tasks are always wrapped into
    ExecutionExceptions and need to be unwrapped before they can be
    identified as ResolvableApiException.

This commit addresses both issues by making waitForSms a proper
coroutine using withContext and a custom wrapper around Task<T> that
relies on suspendCoroutine and automatically unwraps exceptions.

(cherry picked from commit 3afeff45d8)
2020-07-30 14:00:33 +05:30
..
src Fix two SMS Autofill crashes (#985) 2020-07-30 14:00:33 +05:30
.gitignore initial commit 2014-07-24 01:15:11 +01:00
build.gradle build: prepare next development version 2020-07-23 22:02:32 +05:30
lint.xml Use SSHJ for SSH public key authentication (#801) 2020-05-28 09:57:30 +05:30
proguard-android-optimize.txt Introduce better R8 optimizations (#796) 2020-05-26 21:43:41 +05:30
proguard-rules.pro build: uprev all dependencies (#882) 2020-06-25 14:33:57 +02:00