|
@@ -978,7 +978,11 @@ public class FileUploader extends Service
|
|
|
mNotificationBuilder.setContentIntent(PendingIntent.getActivity(this, (int) System.currentTimeMillis(),
|
|
|
showUploadListIntent, 0));
|
|
|
|
|
|
- mNotificationManager.notify(R.string.uploader_upload_in_progress_ticker, mNotificationBuilder.build());
|
|
|
+ if (!upload.isInstantPicture() && !upload.isInstantVideo()) {
|
|
|
+ mNotificationManager.notify(R.string.uploader_upload_in_progress_ticker, mNotificationBuilder.build());
|
|
|
+ } // else wait until the upload really start (onTransferProgress is called), so that if it's discarded
|
|
|
+ // due to lack of Wifi, no notification is shown
|
|
|
+ // TODO generalize for automated uploads
|
|
|
|
|
|
}
|
|
|
|