diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-03 23:27:45 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-04 00:19:31 +0530 |
commit | a3b88c1dee8602bdfe491d172e136b5747e5a137 (patch) | |
tree | 76feb114d224cc752b68ea3bdaad7a16f1b82c37 /app/src | |
parent | 6bb925871b28456648c4f9094d2d6148912fae6f (diff) |
fix: use activity context for Toast
Fixes a newly introduced warning in API 33
> Tried to access visual service WindowManager from a non-visual Context:app.passwordstore.Application@d2801f8 WindowManager
> should be accessed from Activity or other visual Context. Use an Activity or a Context created with
> Context#createWindowContext(int, Bundle), which are adjusted to the configuration and visual bounds of an area on screen.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/app/passwordstore/util/git/GitCommandExecutor.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/app/passwordstore/util/git/GitCommandExecutor.kt b/app/src/main/java/app/passwordstore/util/git/GitCommandExecutor.kt index 40fd0fff..f2e647c2 100644 --- a/app/src/main/java/app/passwordstore/util/git/GitCommandExecutor.kt +++ b/app/src/main/java/app/passwordstore/util/git/GitCommandExecutor.kt @@ -103,7 +103,7 @@ class GitCommandExecutor( RemoteRefUpdate.Status.UP_TO_DATE -> { withContext(Dispatchers.Main) { Toast.makeText( - activity.applicationContext, + activity, activity.applicationContext.getString(R.string.git_push_up_to_date), Toast.LENGTH_SHORT ) |