Skip to content

Commit

Permalink
Merge pull request #2670 from g-jiannan/toast-context
Browse files Browse the repository at this point in the history
Use activity context for Toast.makeText
  • Loading branch information
pyricau authored May 20, 2024
2 parents 74c9821 + 155a883 commit 8986f34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ internal class RequestPermissionActivity : Activity() {
grantResults: IntArray
) {
if (!hasTargetPermission()) {
Toast.makeText(application, R.string.leak_canary_permission_not_granted, LENGTH_LONG)
Toast.makeText(this, R.string.leak_canary_permission_not_granted, LENGTH_LONG)
.show()
}
finish()
Expand Down

0 comments on commit 8986f34

Please sign in to comment.