diff options
author | Bobby Georgescu <georgescu@google.com> | 2013-01-16 14:15:49 -0800 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2013-01-16 14:15:49 -0800 |
commit | dd8784f2a9dc18f8ce2951ef1edaf2e6e63d93b0 (patch) | |
tree | 9fadfbd06fa4e5b4c66cd430547c290b4aa3cebd /src/com/android/gallery3d/ingest | |
parent | 29aeb6bc6ca5e750fad9ff1da351b25969513030 (diff) | |
download | android_packages_apps_Snap-dd8784f2a9dc18f8ce2951ef1edaf2e6e63d93b0.tar.gz android_packages_apps_Snap-dd8784f2a9dc18f8ce2951ef1edaf2e6e63d93b0.tar.bz2 android_packages_apps_Snap-dd8784f2a9dc18f8ce2951ef1edaf2e6e63d93b0.zip |
Always have determinate progress in import notification
Bug: 7967520
Change-Id: Iaeb5f2e3d508d964856faaea63475cbc25e13c0d
Diffstat (limited to 'src/com/android/gallery3d/ingest')
-rw-r--r-- | src/com/android/gallery3d/ingest/IngestService.java | 9 |
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 |