summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwqi <wqi@codeaurora.org>2016-03-28 17:49:49 +0800
committerwqi <wqi@codeaurora.org>2016-03-28 17:49:49 +0800
commit536541862203ea677f57ea6c2c6f1d5a68832b93 (patch)
treef434ceb7f6a5e1523dae56cbe26f431e46bdb0ce /src
parentafbd6845a03f8982a8503eba5aa41bc973537a2c (diff)
downloadandroid_packages_apps_Gallery2-536541862203ea677f57ea6c2c6f1d5a68832b93.tar.gz
android_packages_apps_Gallery2-536541862203ea677f57ea6c2c6f1d5a68832b93.tar.bz2
android_packages_apps_Gallery2-536541862203ea677f57ea6c2c6f1d5a68832b93.zip
Gallery2: Fix photo number display abnormal in timeline page.
The image count of mTimelineTitleMediaItem may not refresh when mKind change to ClusterSource.CLUSTER_ALBUMSET_TIME. Change-Id: I1b286ba52b96524ae053bae363fa306789cab6e1 CRs-Fixed: 993648
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/data/ClusterAlbum.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/ClusterAlbum.java b/src/com/android/gallery3d/data/ClusterAlbum.java
index 6cf7bee6b..ad770c81a 100644
--- a/src/com/android/gallery3d/data/ClusterAlbum.java
+++ b/src/com/android/gallery3d/data/ClusterAlbum.java
@@ -224,6 +224,14 @@ public class ClusterAlbum extends MediaSet implements ContentListener {
}
public void setClusterKind(int kind) {
+ if (mKind == kind) {
+ return;
+ }
mKind = kind;
+ refreshImageItemCount();
+ }
+
+ private void refreshImageItemCount() {
+ setImageItemCount(mImageCount);
}
}