diff options
author | cyberta <cyberta@riseup.net> | 2022-08-08 23:30:32 +0000 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2022-08-08 23:30:32 +0000 |
commit | 8e0fa913e098087d73f8ce63888b2213c2c63741 (patch) | |
tree | 1f5865a9e30286f726ee0751e535572f3c4fee2d /app/src/fatweb | |
parent | 8d06c86a2fedf7a758801ac0b029b53b54977bd7 (diff) | |
parent | 6d705263bf0fd616926d2c64ada98e2ee7740024 (diff) |
Merge branch 'update_dependencies' into 'master'
update API version and dependencies
Closes #9057
See merge request leap/bitmask_android!206
Diffstat (limited to 'app/src/fatweb')
-rw-r--r-- | app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadNotificationManager.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadNotificationManager.java b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadNotificationManager.java index 336802c6..687fc66a 100644 --- a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadNotificationManager.java +++ b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadNotificationManager.java @@ -33,6 +33,7 @@ import se.leap.bitmaskclient.R; import static android.content.Intent.CATEGORY_DEFAULT; import static se.leap.bitmaskclient.appUpdate.DownloadBroadcastReceiver.ACTION_DOWNLOAD; +import static se.leap.bitmaskclient.base.utils.ConfigHelper.getPendingIntentFlags; public class DownloadNotificationManager { private Context context; @@ -130,12 +131,13 @@ public class DownloadNotificationManager { private PendingIntent getDownloadIntent() { Intent downloadIntent = new Intent(context, DownloadBroadcastReceiver.class); downloadIntent.setAction(ACTION_DOWNLOAD); - return PendingIntent.getBroadcast(context, 0, downloadIntent, PendingIntent.FLAG_CANCEL_CURRENT); + + return PendingIntent.getBroadcast(context, 0, downloadIntent, getPendingIntentFlags()); } private PendingIntent getInstallIntent() { Intent installIntent = new Intent(context, InstallActivity.class); - return PendingIntent.getActivity(context, 0, installIntent, PendingIntent.FLAG_CANCEL_CURRENT); + return PendingIntent.getActivity(context, 0, installIntent, getPendingIntentFlags()); } public void cancelNotifications() { |