diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-10-06 01:06:43 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-06 12:09:47 -0700 |
commit | 3eb0a21071f7acae42077d11773f872ffd9628d3 (patch) | |
tree | b2f6cb5b580c9e67a38111692653d2dfe4eca3c1 /src/com/android/gallery3d/app/Gallery.java | |
parent | 82da69ff867e4e19f0adb970933a42eb65d973ed (diff) | |
download | android_packages_apps_Snap-3eb0a21071f7acae42077d11773f872ffd9628d3.tar.gz android_packages_apps_Snap-3eb0a21071f7acae42077d11773f872ffd9628d3.tar.bz2 android_packages_apps_Snap-3eb0a21071f7acae42077d11773f872ffd9628d3.zip |
Fix display of spinner and SQL exception for view intent
Bug: 7288544
Bug: 7219163
Remove the query for photo DISPLAY_NAME in view intent
since it is no longer used, and hide the spinner when
launching PhotoPage via this intent.
Change-Id: Id41ff3d623e7fd2e708b1042782333b48e8ba4a7
Diffstat (limited to 'src/com/android/gallery3d/app/Gallery.java')
-rw-r--r-- | src/com/android/gallery3d/app/Gallery.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/com/android/gallery3d/app/Gallery.java b/src/com/android/gallery3d/app/Gallery.java index dadb32c48..6ca4bab2d 100644 --- a/src/com/android/gallery3d/app/Gallery.java +++ b/src/com/android/gallery3d/app/Gallery.java @@ -212,26 +212,6 @@ public final class Gallery extends AbstractGalleryActivity implements OnCancelLi } } - // Displays the filename as title, reading the filename from the interface: - // {@link android.provider.OpenableColumns#DISPLAY_NAME}. - AsyncQueryHandler queryHandler = new AsyncQueryHandler(getContentResolver()) { - @Override - protected void onQueryComplete(int token, Object cookie, Cursor cursor) { - try { - if ((cursor != null) && cursor.moveToFirst()) { - String displayName = cursor.getString(0); - - // Just show empty title if other apps don't set DISPLAY_NAME - setTitle((displayName == null) ? "" : displayName); - } - } finally { - Utils.closeSilently(cursor); - } - } - }; - queryHandler.startQuery(0, null, uri, new String[] {OpenableColumns.DISPLAY_NAME}, - null, null, null); - getStateManager().startState(PhotoPage.class, data); } } |