diff options
author | Mark Wei <markwei@google.com> | 2012-10-25 14:12:23 -0700 |
---|---|---|
committer | Paul Westbrook <pwestbro@google.com> | 2012-10-26 22:47:10 -0700 |
commit | 5f0470b259c56dd5df171948d6efd4219a3a17f8 (patch) | |
tree | bcf3c29e79e7fca3f11dbc8b060a1695bc9e4ef4 | |
parent | 939ce1b0bcd1ded7e1dc8c36eb89dcd4d891bd12 (diff) | |
download | android_frameworks_ex-5f0470b259c56dd5df171948d6efd4219a3a17f8.tar.gz android_frameworks_ex-5f0470b259c56dd5df171948d6efd4219a3a17f8.tar.bz2 android_frameworks_ex-5f0470b259c56dd5df171948d6efd4219a3a17f8.zip |
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
-rw-r--r-- | photoviewer/src/com/android/ex/photo/PhotoViewActivity.java | 3 | ||||
-rw-r--r-- | photoviewer/src/com/android/ex/photo/fragments/PhotoViewFragment.java | 4 |
2 files changed, 6 insertions, 1 deletions
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(); } |