From 63ec6cf86b5ff11bd4af50cf8422b64818ec9806 Mon Sep 17 00:00:00 2001 From: George Mount Date: Fri, 19 Oct 2012 14:57:51 -0700 Subject: Remove progress bar when switching to grid mode. Bug 7377975 Change-Id: I388fdf6c6c9a5ffa64e10f864806a8131e53a009 --- src/com/android/gallery3d/app/PhotoPage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index b526f91fe..5e3b166c3 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -966,6 +966,10 @@ public class PhotoPage extends ActivityState implements onUpPressed(); } else { if (mOriginalSetPathString == null) return; + if (mProgressBar != null) { + updateCurrentPhoto(null); + mProgressBar.hideProgress(); + } Bundle data = new Bundle(getData()); data.putString(AlbumPage.KEY_MEDIA_PATH, mOriginalSetPathString); data.putString(AlbumPage.KEY_PARENT_MEDIA_PATH, -- cgit v1.2.3