mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 21:55:48 +03:00
hopefully really fix dodgy code
Signed-off-by: Jonas Mayer <jonas.a.mayer@gmx.net>
This commit is contained in:
parent
322565f099
commit
5326d08aeb
1 changed files with 12 additions and 5 deletions
|
@ -1447,12 +1447,19 @@ public class FileUploader extends Service
|
|||
mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
|
||||
}
|
||||
|
||||
if (uploadFileOperation == null || uploadFileOperation.getOldFile() == null) return;
|
||||
//cancel for old file because of file conflicts
|
||||
mNotificationManager.cancel(NotificationUtils.createUploadNotificationTag(uploadFileOperation.getOldFile()),
|
||||
NOTIFICATION_ERROR_ID);
|
||||
if (uploadFileOperation == null) return;
|
||||
|
||||
mNotificationManager.cancel(NotificationUtils.createUploadNotificationTag(uploadFileOperation.getFile()),
|
||||
NOTIFICATION_ERROR_ID);
|
||||
NOTIFICATION_ERROR_ID);
|
||||
|
||||
//cancel for old file because of file conflicts
|
||||
OCFile oldFile = uploadFileOperation.getOldFile();
|
||||
if ( oldFile != null) {
|
||||
mNotificationManager.cancel(NotificationUtils.createUploadNotificationTag(oldFile),
|
||||
NOTIFICATION_ERROR_ID);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue