aboutsummaryrefslogtreecommitdiff
path: root/app/src/nonFree
diff options
context:
space:
mode:
authorrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>2023-09-27 18:45:59 +0000
committerGitHub <noreply@github.com>2023-09-27 18:45:59 +0000
commit47d65d074078490b3694f305ad8badc73188dfbc (patch)
treeecc4c9426895af8ddba5967ccc9cba3c52ba60fd /app/src/nonFree
parent403e378dc33907757979fe681dacefb1366f12f5 (diff)
fix(deps): update dependency com.slack.lint:slack-lint-checks to v0.6.0 (#2697)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/nonFree')
-rw-r--r--app/src/nonFree/java/app/passwordstore/autofill/oreo/ui/AutofillSmsActivity.kt8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/src/nonFree/java/app/passwordstore/autofill/oreo/ui/AutofillSmsActivity.kt b/app/src/nonFree/java/app/passwordstore/autofill/oreo/ui/AutofillSmsActivity.kt
index 61b42342..ebd10020 100644
--- a/app/src/nonFree/java/app/passwordstore/autofill/oreo/ui/AutofillSmsActivity.kt
+++ b/app/src/nonFree/java/app/passwordstore/autofill/oreo/ui/AutofillSmsActivity.kt
@@ -15,6 +15,7 @@ import android.os.Build
import android.os.Bundle
import android.view.autofill.AutofillManager
import androidx.appcompat.app.AppCompatActivity
+import androidx.core.content.ContextCompat
import androidx.lifecycle.lifecycleScope
import app.passwordstore.databinding.ActivityOreoAutofillSmsBinding
import app.passwordstore.util.autofill.AutofillResponseBuilder
@@ -113,18 +114,19 @@ class AutofillSmsActivity : AppCompatActivity() {
return
}
- registerReceiver(
+ ContextCompat.registerReceiver(
+ this,
smsCodeRetrievedReceiver,
IntentFilter(SmsCodeRetriever.SMS_CODE_RETRIEVED_ACTION),
SmsRetriever.SEND_PERMISSION,
- null
+ null,
+ ContextCompat.RECEIVER_EXPORTED,
)
lifecycleScope.launch { waitForSms() }
}
// Retry starting the SMS code retriever after a permission request.
@Deprecated("Deprecated in Java")
- @Suppress("DEPRECATION")
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (resultCode != Activity.RESULT_OK) return