diff options
author | Bobby Georgescu <georgescu@google.com> | 2013-01-16 22:39:01 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-01-16 22:39:01 +0000 |
commit | e4130faa8418fef36fc022891e0b215ce714f5d1 (patch) | |
tree | 60c7a1b5ea8364c2377a84f441c69005a006d14a /src/com/android/gallery3d | |
parent | 48d4284a9ce804ba00b22e587a8b3d27ef9928c1 (diff) | |
parent | a7a73f3f8ea26835c376f38e75bcef12a25cac26 (diff) | |
download | android_packages_apps_Gallery2-e4130faa8418fef36fc022891e0b215ce714f5d1.tar.gz android_packages_apps_Gallery2-e4130faa8418fef36fc022891e0b215ce714f5d1.tar.bz2 android_packages_apps_Gallery2-e4130faa8418fef36fc022891e0b215ce714f5d1.zip |
Merge "Always have determinate progress in import notification" into gb-ub-photos-bryce
Diffstat (limited to 'src/com/android/gallery3d')
-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 |