OSDN Git Service

Reskin: Fix stability bugs introduced by reskin
authorBobby Georgescu <georgescu@google.com>
Wed, 12 Sep 2012 20:48:50 +0000 (13:48 -0700)
committerBobby Georgescu <georgescu@google.com>
Wed, 12 Sep 2012 21:09:14 +0000 (14:09 -0700)
commit1de93cc0cbd940ed1d07048dda56406e7c3a7d96
treee60d97c4cc021b19a7f1b8b1ec3ce440ea7fc6eb
parenta1d65900c67ba487dec08727bcd70084ae7f90bf
Reskin: Fix stability bugs introduced by reskin

Bug: 7150348
Bug: 7144206
Bug: 7050303

If PhotoPage is launched/resumed on a completely empty
album (for instance, if Gallery was opened to the Camera
folder and paused, all photos were deleted via the Camera
app, and then Gallery is resumed), bail out of PhotoPage
since it cannot handle this. Also fixes an NPE.

Change-Id: I162ff5ad149c322704c8af7d4705d87ae6c6098a
src/com/android/gallery3d/app/AlbumPage.java
src/com/android/gallery3d/app/PhotoPage.java