打开相机,进入相册,向滑动至最后一张照片或视频,删除该照片或视频,没有显示上一张照片,显示黑屏背景

来源:互联网 发布:截面数据 面板数据 编辑:程序博客网 时间:2024/04/30 00:46

--- a/src/com/android/gallery3d/app/AlbumPage.java
+++ b/src/com/android/gallery3d/app/AlbumPage.java
@@ -813,6 +813,9 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
             clearLoadingBit(BIT_LOADING_RELOAD);
             mLoadingFailed = loadingFailed;
             showSyncErrorIfNecessary(loadingFailed);
+            /* add by liuyanfeng 20151012 for SWBUG00037899 start */
+            mRootPane.invalidate();
+            /* end */
         }
     }



diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 35c5bdb..bfb6fb8 100755
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -565,6 +565,9 @@ public abstract class PhotoPage extends ActivityState implements
                     if (!mModel.isEmpty()) {
                         MediaItem photo = mModel.getMediaItem(0);
                         if (photo != null) updateCurrentPhoto(photo);
+                            /* add by liuyanfeng 20151012 for SWBUG00037899 start */
+                            else mModel.resume();
+                            /* end */
                     } else if (mIsActive) {
                         // We only want to finish the PhotoPage if there is no
                         // deletion that the user can undo.




0 0
原创粉丝点击