OSDN Git Service

Update filmstrip item on metadata update
authorAlan Newberger <alann@google.com>
Thu, 25 Jun 2015 18:40:32 +0000 (11:40 -0700)
committerAlan Newberger <alann@google.com>
Thu, 25 Jun 2015 18:40:32 +0000 (11:40 -0700)
Due to async metadata loading, when viewing an image progress bar,
after progress completion the main handler hiding progress bar would
also hide filmstrip buttons if in secure mode, but the async metadata
handler was calling a restricted handler that would only update the
controls, not hiding for secure, or updating overflow menu. This
change ensures all UI aspects of the item update are processed upon
metadata loading.

BUG=21499182

Change-Id: I92f22667d836d6ece6aa8427d967ec8e038b1e77

src/com/android/camera/CameraActivity.java

index b1127c3..a2c49c5 100644 (file)
@@ -777,7 +777,7 @@ public class CameraActivity extends QuickActivity
                     int currentIndex = mFilmstripController.getCurrentAdapterIndex();
                     for (Integer index : indexes) {
                         if (index == currentIndex) {
-                            updateBottomControlsByData(mDataAdapter.getItemAt(index));
+                            updateUiByData(index);
                             // Currently we have only 1 data can be matched.
                             // No need to look for more, break.
                             break;