From fdc2cd8b3852f4f1f7ca7dc872587e0ee78790e8 Mon Sep 17 00:00:00 2001 From: zhuw Date: Fri, 19 Aug 2016 15:47:33 +0800 Subject: SnapdragonGallery: Fix extra black picture when delete the final photo Change the time of reload source. Change-Id: Id71609e611c7bc7a91c76e76c22c9f8886ed988c CRs-Fixed: 1056242 --- src/com/android/gallery3d/app/PhotoDataAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android') diff --git a/src/com/android/gallery3d/app/PhotoDataAdapter.java b/src/com/android/gallery3d/app/PhotoDataAdapter.java index 0b7f34e70..36bde4dbd 100755 --- a/src/com/android/gallery3d/app/PhotoDataAdapter.java +++ b/src/com/android/gallery3d/app/PhotoDataAdapter.java @@ -1309,10 +1309,10 @@ public class PhotoDataAdapter implements PhotoPage.Model { } mDirty = false; - version = mSource.reload(); if (mIsFromTimelineScreen) { mSource.setClusterKind(GalleryActivity.CLUSTER_ALBUMSET_NO_TITLE); } + version = mSource.reload(); //if data is not ready, continue to reload if (version == MediaObject.INVALID_DATA_VERSION) { continue; -- cgit v1.2.3