diff options
author | Mark Wei <markwei@google.com> | 2012-10-25 14:12:23 -0700 |
---|---|---|
committer | Mark Wei <markwei@google.com> | 2012-10-25 14:12:23 -0700 |
commit | a1bdcf1af2c39a0d8b0d0fb8f32ea43a70aed17f (patch) | |
tree | 6209793a5034d10adb01eb8be24a463e7be89d22 /photoviewer | |
parent | 48a26c9dcf012645315a0b77c687f57476d452a0 (diff) | |
download | android_frameworks_ex-a1bdcf1af2c39a0d8b0d0fb8f32ea43a70aed17f.tar.gz android_frameworks_ex-a1bdcf1af2c39a0d8b0d0fb8f32ea43a70aed17f.tar.bz2 android_frameworks_ex-a1bdcf1af2c39a0d8b0d0fb8f32ea43a70aed17f.zip |
Fix for panorama icon not always showing up in photo viewer.
Bug: 7392422
Change-Id: Ifff054c86366eb0b495a06ead9e0dc60123e90c4
Diffstat (limited to 'photoviewer')
-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(); } |