OSDN Git Service

Request sync when there's no mediaItem in a mediaSet.
authorHung-ying Tyan <tyanh@google.com>
Fri, 30 Sep 2011 06:42:50 +0000 (14:42 +0800)
committerHung-ying Tyan <tyanh@google.com>
Fri, 7 Oct 2011 10:57:06 +0000 (18:57 +0800)
commit57cbaa1ef40d2215c6400f5ae4af3a09e67abb2d
tree3ea6a3f73ce7ff4aa309cc79a109fd6860f08300
parenteaa750f62a064e142605c3531539699469948983
Request sync when there's no mediaItem in a mediaSet.

This is to fix the problem where media items haven't been sync'ed when the album
set or album is viewed for the first time.

+ Add MediaSet.SyncListener.
+ Make AlbumPage and AlbumSetPage implement SyncListener.
+ Implement requestSync() for ComboAlbum and ComboAlbumSet.
+ add ActivityState.isDestroyed(). This also fixes the problem where
  StateManager.finishState() may be called twice.

Bug: 5337899
Change-Id: I25364c3ac25721a2650701c5d7931bfb6daa9303
res/values/strings.xml
src/com/android/gallery3d/app/ActivityState.java
src/com/android/gallery3d/app/AlbumDataAdapter.java
src/com/android/gallery3d/app/AlbumPage.java
src/com/android/gallery3d/app/AlbumSetPage.java
src/com/android/gallery3d/app/StateManager.java
src/com/android/gallery3d/data/ComboAlbum.java
src/com/android/gallery3d/data/ComboAlbumSet.java
src/com/android/gallery3d/data/MediaSet.java