summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorI-Jong Lin <ijonglin@google.com>2015-06-08 12:24:51 -0700
committerI-Jong Lin <ijonglin@google.com>2015-06-08 12:24:51 -0700
commite2323c537f0ec4966ad58251a14e1437071ae085 (patch)
treedf88399057f05277d934f36576f9d302220f2d87 /src
parent43c0ecae9759eb19ab4485e367e1b09f7291578f (diff)
downloadandroid_packages_apps_Camera2-e2323c537f0ec4966ad58251a14e1437071ae085.tar.gz
android_packages_apps_Camera2-e2323c537f0ec4966ad58251a14e1437071ae085.tar.bz2
android_packages_apps_Camera2-e2323c537f0ec4966ad58251a14e1437071ae085.zip
Refresh required for full-screen undo in filmstrip
Bug: 21666018 A Glacier regression bug: when filmstrip is in full-screen mode, and an deletion is undone, a blank screen is shown. With the fix, the undo forces the filmstrip into its "filmstrip" mode and forces a refresh with the un-deleted image. Change-Id: Id99be5d4d06e220e8698821badff32dba9b43997
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/CameraActivity.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java
index 7f5b8aa28..b1127c36a 100644
--- a/src/com/android/camera/CameraActivity.java
+++ b/src/com/android/camera/CameraActivity.java
@@ -156,6 +156,7 @@ import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.MemoryCategory;
import com.bumptech.glide.load.DecodeFormat;
import com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor;
+
import com.google.common.base.Optional;
import com.google.common.logging.eventprotos;
import com.google.common.logging.eventprotos.ForegroundEvent.ForegroundSource;
@@ -2612,6 +2613,12 @@ public class CameraActivity extends QuickActivity
@Override
public void onClick(View view) {
mDataAdapter.undoDeletion();
+ // Fix for b/21666018: When undoing a delete in Fullscreen
+ // mode, just flip
+ // back to the filmstrip to force a refresh.
+ if (mFilmstripController.inFullScreen()) {
+ mFilmstripController.goToFilmstrip();
+ }
hideUndoDeletionBar(true);
}
});