From 5f0470b259c56dd5df171948d6efd4219a3a17f8 Mon Sep 17 00:00:00 2001 From: Mark Wei Date: Thu, 25 Oct 2012 14:12:23 -0700 Subject: Fix for panorama icon not always showing up in photo viewer. cherry-pick of https://googleplex-android-review.googlesource.com/#/c/246161/ Bug: 7392422 Change-Id: Ifff054c86366eb0b495a06ead9e0dc60123e90c4 --- photoviewer/src/com/android/ex/photo/PhotoViewActivity.java | 3 +++ photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'photoviewer') diff --git a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java index 5231ca1..2a24e1f 100644 --- a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java +++ b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java @@ -532,4 +532,7 @@ public class PhotoViewActivity extends Activity implements postActionBarHideRunnableWithDelay(); } } + + public void onNewPhotoLoaded() { + } } diff --git a/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java b/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java index 2ecbeb7..efb8145 100644 --- a/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java +++ b/photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java @@ -302,8 +302,10 @@ public class PhotoViewFragment extends Fragment implements // Hide the progress bar as it isn't needed anymore. mPhotoProgressBar.setVisibility(View.GONE); } + if (data != null) { + mCallback.onNewPhotoLoaded(); + } - mCallback.setViewActivated(); setViewVisibility(); } -- cgit v1.2.3