OSDN Git Service

Correct stale background on completely empty gallery
authorBobby Georgescu <georgescu@google.com>
Tue, 9 Oct 2012 23:23:36 +0000 (16:23 -0700)
committerBobby Georgescu <georgescu@google.com>
Tue, 9 Oct 2012 23:25:20 +0000 (16:25 -0700)
Bug: 7314560
When the last album is delete by long pressing and pressing
the delete icon, and the gallery is left completely empty,
the slotview was not being correctly invalidated.

Change-Id: I2d5ec7ac7fb9604fd74ca8fa4fa6df09d6dec49d

src/com/android/gallery3d/app/AlbumSetPage.java

index eaf9145..1719b89 100644 (file)
@@ -421,6 +421,7 @@ public class AlbumSetPage extends ActivityState implements
                 } else {
                     mShowedEmptyToastForSelf = true;
                     showEmptyAlbumToast(Toast.LENGTH_LONG);
+                    mSlotView.invalidate();
                     showCameraButton();
                 }
                 return;