summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt2
-rw-r--r--autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillHelper.kt4
2 files changed, 3 insertions, 3 deletions
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
)
diff --git a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillHelper.kt b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillHelper.kt
index 0b4f491d..dbdfad17 100644
--- a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillHelper.kt
+++ b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillHelper.kt
@@ -88,7 +88,7 @@ internal val AssistStructure.ViewNode.webOrigin: String?
}
@RequiresApi(Build.VERSION_CODES.O)
-public class FixedSaveCallback(context: Context, private val callback: SaveCallback) {
+public class FixedSaveCallback(private val context: Context, private val callback: SaveCallback) {
private val applicationContext = context.applicationContext
@@ -98,7 +98,7 @@ public class FixedSaveCallback(context: Context, private val callback: SaveCallb
// See
// https://developer.android.com/reference/android/service/autofill/SaveCallback#onFailure(java.lang.CharSequence)
if (applicationContext.applicationInfo.targetSdkVersion >= 29) {
- Toast.makeText(applicationContext, message, Toast.LENGTH_LONG).show()
+ Toast.makeText(context, message, Toast.LENGTH_LONG).show()
}
}