summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-01-16 14:15:49 -0800
committerBobby Georgescu <georgescu@google.com>2013-01-16 14:15:49 -0800
commita7a73f3f8ea26835c376f38e75bcef12a25cac26 (patch)
tree60caa2314805bd9f3ce4a0a4913ae55f6ca18d74 /src/com/android/gallery3d
parentaeb7d79d2a35f534276bc6bf8128349f9768ae6b (diff)
downloadandroid_packages_apps_Gallery2-a7a73f3f8ea26835c376f38e75bcef12a25cac26.tar.gz
android_packages_apps_Gallery2-a7a73f3f8ea26835c376f38e75bcef12a25cac26.tar.bz2
android_packages_apps_Gallery2-a7a73f3f8ea26835c376f38e75bcef12a25cac26.zip
Always have determinate progress in import notification
Bug: 7967520 Change-Id: Iaeb5f2e3d508d964856faaea63475cbc25e13c0d
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r--src/com/android/gallery3d/ingest/IngestService.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/com/android/gallery3d/ingest/IngestService.java b/src/com/android/gallery3d/ingest/IngestService.java
index 2ca4d4ca2..12b056b60 100644
--- a/src/com/android/gallery3d/ingest/IngestService.java
+++ b/src/com/android/gallery3d/ingest/IngestService.java
@@ -188,12 +188,11 @@ public class IngestService extends Service implements ImportTask.Listener,
}
if (mClientActivity != null) {
mClientActivity.onImportProgress(visitedCount, totalCount, pathIfSuccessful);
- } else {
- mNotificationBuilder.setProgress(totalCount, visitedCount, false)
- .setContentText(getResources().getText(R.string.ingest_importing));
- mNotificationManager.notify(NotificationIds.INGEST_NOTIFICATION_IMPORTING,
- mNotificationBuilder.build());
}
+ mNotificationBuilder.setProgress(totalCount, visitedCount, false)
+ .setContentText(getResources().getText(R.string.ingest_importing));
+ mNotificationManager.notify(NotificationIds.INGEST_NOTIFICATION_IMPORTING,
+ mNotificationBuilder.build());
}
@Override