diff --git a/leakcanary/leakcanary-android-core/src/main/java/leakcanary/internal/RequestPermissionActivity.kt b/leakcanary/leakcanary-android-core/src/main/java/leakcanary/internal/RequestPermissionActivity.kt index 74b47eefa1..fdff07789c 100644 --- a/leakcanary/leakcanary-android-core/src/main/java/leakcanary/internal/RequestPermissionActivity.kt +++ b/leakcanary/leakcanary-android-core/src/main/java/leakcanary/internal/RequestPermissionActivity.kt @@ -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()