From b93beaf65349dc3b4522c2506d6cec1ceb64b618 Mon Sep 17 00:00:00 2001 From: zhuw Date: Fri, 5 Aug 2016 15:21:21 +0800 Subject: Gallery2: Fix the photo preview cannot refresh after delete the photo Delete a wrong conditional branch. Change-Id: I63c064b0f39b1bfd6e3484b598f8b16d0a7bcaa7 CRs-Fixed: 1050960 --- src/com/android/gallery3d/app/PhotoDataAdapter.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/com/android/gallery3d/app/PhotoDataAdapter.java b/src/com/android/gallery3d/app/PhotoDataAdapter.java index 872706fee..0b7f34e70 100755 --- a/src/com/android/gallery3d/app/PhotoDataAdapter.java +++ b/src/com/android/gallery3d/app/PhotoDataAdapter.java @@ -1336,10 +1336,6 @@ public class PhotoDataAdapter implements PhotoPage.Model { info = executeAndWait(new GetUpdateInfo()); } - if (info.version != version) { - info.reloadContent = true; - } - if (!info.reloadContent) continue; info.size = mSource.getMediaItemCount(); // Check it is from camera or not -- cgit v1.2.3