diff options
author | cyBerta <cyberta@riseup.net> | 2020-12-28 18:44:00 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2020-12-28 18:44:00 +0100 |
commit | 13a495d18917f9b8952088b4a3e960239c5a168c (patch) | |
tree | 576bbe00e663665980a15187aad4ec17c0abbd97 /app/src | |
parent | 73efd90a7bb170481ae827e8ae0523daed992b40 (diff) |
cancel ongoing download notification if download failed
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java | 1 |
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); |