diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-11-15 21:45:20 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-11-15 21:45:20 +0100 |
commit | 1e2f6f00da360129b25d83d4c0cab0ff484a2633 (patch) | |
tree | 391ed58e07d879a988579dfa433b9941ee217ce1 /src/main/java/de | |
parent | a83d85e5f0cbafe7291b8507c70dd3aac1a310ad (diff) |
close video compression notification on errors
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 1654a913c..a21bd3a9f 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -553,12 +553,14 @@ public class XmppConnectionService extends Service { mNotifyManager.notify(NOTIFICATION_ID, mBuilder.build()); if (FileBackend.weOwnFile(this, uri)) { Log.d(Config.LOGTAG,"trying to attach video that belonged to us"); + mNotifyManager.cancel(NOTIFICATION_ID); callback.error(R.string.security_error_invalid_file_access, null); return; } Log.d(Config.LOGTAG,"Video file (size) :" + f.toString() + "("+filesize/1024/1024+"MB)"); if (filesize == 0) { Log.d(Config.LOGTAG,"Error with file, size = 0"); + mNotifyManager.cancel(NOTIFICATION_ID); callback.error(R.string.error_file_corrupt, null); return; } |