From d432685aa8d8e04cc72b9a656f149f070c95db58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 25 Nov 2019 22:23:55 +0100 Subject: [PATCH] [Update] Fix update downloading from notification. --- .../pl/szczodrzynski/edziennik/utils/PermissionChecker.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/utils/PermissionChecker.java b/app/src/main/java/pl/szczodrzynski/edziennik/utils/PermissionChecker.java index db8e77ec..3e4c43e6 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/utils/PermissionChecker.java +++ b/app/src/main/java/pl/szczodrzynski/edziennik/utils/PermissionChecker.java @@ -157,8 +157,10 @@ public class PermissionChecker { public Intent intentApkInstall() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { - return new Intent("android.settings.MANAGE_UNKNOWN_APP_SOURCES", + Intent intent = new Intent("android.settings.MANAGE_UNKNOWN_APP_SOURCES", Uri.parse("package:" + mContext.getPackageName())); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + return intent; } return null; }