From 16d6b1e85341c5ffd55e63aed7680e42c7d8d931 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 8 Mar 2023 22:59:12 +0530 Subject: fix: use UI context for more `Toast`s Fixes: a3b88c1dee86 ("fix: use activity context for Toast") --- app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt b/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt index e625a0bd..38cc6a5b 100644 --- a/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt +++ b/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt @@ -192,7 +192,7 @@ abstract class GitOperation(protected val callingActivity: FragmentActivity) { // users though, who might deduce that the screen lock // protection is not effective. Hence, we fail with an error. Toast.makeText( - callingActivity.applicationContext, + callingActivity, R.string.biometric_auth_generic_failure, Toast.LENGTH_LONG ) -- cgit v1.2.3