summaryrefslogtreecommitdiff
path: root/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2020-12-28 18:44:00 +0100
committercyBerta <cyberta@riseup.net>2020-12-28 18:44:00 +0100
commit13a495d18917f9b8952088b4a3e960239c5a168c (patch)
tree576bbe00e663665980a15187aad4ec17c0abbd97 /app/src/fatweb/java/se.leap.bitmaskclient/appUpdate
parent73efd90a7bb170481ae827e8ae0523daed992b40 (diff)
cancel ongoing download notification if download failed
Diffstat (limited to 'app/src/fatweb/java/se.leap.bitmaskclient/appUpdate')
-rw-r--r--app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java
index 525c3c9b..a4acc2aa 100644
--- a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java
+++ b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java
@@ -81,6 +81,7 @@ public class DownloadBroadcastReceiver extends BroadcastReceiver {
} else {
Toast.makeText(context.getApplicationContext(), context.getString(R.string.version_update_error), Toast.LENGTH_LONG).show();
}
+ notificationManager.cancelNotifications();
break;
case DOWNLOAD_PROGRESS:
int progress = resultData.getInt(PROGRESS_VALUE, 0);