diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-05-28 01:48:39 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 20:18:39 +0000 |
commit | 184391599b3b2946a485fc31e3b6896d2ab6f303 (patch) | |
tree | 50663ba3b5c3fb43383b864b90e38e364d15cdfa /app/src/nonFree/java/dev/msfjarvis | |
parent | fb7c81124cce8f89aeaa282ecdfdcdc65c460acd (diff) |
Fix ClipboardService crash (#1928)
* Fix clipboard service crash on API 31
* all: use ints directly for SDK version checks
I much prefer it this way
Diffstat (limited to 'app/src/nonFree/java/dev/msfjarvis')
-rw-r--r-- | app/src/nonFree/java/dev/msfjarvis/aps/autofill/oreo/ui/AutofillSmsActivity.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/nonFree/java/dev/msfjarvis/aps/autofill/oreo/ui/AutofillSmsActivity.kt b/app/src/nonFree/java/dev/msfjarvis/aps/autofill/oreo/ui/AutofillSmsActivity.kt index e6cc3920..f251773a 100644 --- a/app/src/nonFree/java/dev/msfjarvis/aps/autofill/oreo/ui/AutofillSmsActivity.kt +++ b/app/src/nonFree/java/dev/msfjarvis/aps/autofill/oreo/ui/AutofillSmsActivity.kt @@ -52,7 +52,7 @@ suspend fun <T> Task<T>.suspendableAwait() = } } -@RequiresApi(Build.VERSION_CODES.O) +@RequiresApi(26) class AutofillSmsActivity : AppCompatActivity() { companion object { @@ -60,7 +60,7 @@ class AutofillSmsActivity : AppCompatActivity() { private var fillOtpFromSmsRequestCode = 1 fun shouldOfferFillFromSms(context: Context): Boolean { - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) return false + if (Build.VERSION.SDK_INT < 28) return false val googleApiAvailabilityInstance = GoogleApiAvailability.getInstance() val googleApiStatus = googleApiAvailabilityInstance.isGooglePlayServicesAvailable(context) if (googleApiStatus != ConnectionResult.SUCCESS) { |