|
@@ -1168,6 +1168,10 @@ public class FileUploader extends Service
|
|
|
showUploadListIntent, 0));
|
|
|
|
|
|
if (!upload.isInstantPicture() && !upload.isInstantVideo()) {
|
|
|
+ if (mNotificationManager == null) {
|
|
|
+ mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
|
|
|
+ }
|
|
|
+
|
|
|
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
|