Fix infinite spinner dialog

bug:11328106

Change-Id: Icbfcb7bb6c88a03c81315789b2569da440267edd
diff --git a/src/com/android/gallery3d/filtershow/pipeline/ProcessingService.java b/src/com/android/gallery3d/filtershow/pipeline/ProcessingService.java
index b5b636e..e5736d4 100644
--- a/src/com/android/gallery3d/filtershow/pipeline/ProcessingService.java
+++ b/src/com/android/gallery3d/filtershow/pipeline/ProcessingService.java
@@ -288,7 +288,7 @@
         if (mNeedsAlive) {
             // If the app has been restarted while we were saving...
             mFiltershowActivity.updateUIAfterServiceStarted();
-        } else if (mFiltershowActivity.isSimpleEditAction()) {
+        } else if (exit || mFiltershowActivity.isSimpleEditAction()) {
             // terminate now
             mFiltershowActivity.completeSaveImage(result);
         }