summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChao Zhang <chaoz@codeaurora.org>2016-05-12 17:28:42 +0800
committerLikai Ding <likaid@codeaurora.org>2016-06-28 10:16:00 +0800
commit83dae75ad4f5696756eac9c571219bfedfd5022a (patch)
treef3f89427d85c5de7ca09e4d8766876340fba8c6c /src
parent1417b189bc8c8993f238957e5b1771956042f59b (diff)
downloadandroid_packages_apps_Gallery2-83dae75ad4f5696756eac9c571219bfedfd5022a.tar.gz
android_packages_apps_Gallery2-83dae75ad4f5696756eac9c571219bfedfd5022a.tar.bz2
android_packages_apps_Gallery2-83dae75ad4f5696756eac9c571219bfedfd5022a.zip
Gallery2: fix timeline title display abnormal.
timeline title will displays abnormal after set a large photo as contact photo. set correct cluster kind to fix it. Change-Id: Iec62a81bb61b09be4466418520baaa7426ecaeaf CRs-Fixed: 1004573
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/data/ClusterAlbumSet.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/ClusterAlbumSet.java b/src/com/android/gallery3d/data/ClusterAlbumSet.java
index 3dc1ec0c5..0986a8d69 100644
--- a/src/com/android/gallery3d/data/ClusterAlbumSet.java
+++ b/src/com/android/gallery3d/data/ClusterAlbumSet.java
@@ -131,6 +131,8 @@ public class ClusterAlbumSet extends MediaSet implements ContentListener {
album = (ClusterAlbum) dataManager.peekMediaObject(childPath);
if (album == null) {
album = new ClusterAlbum(childPath, dataManager, this, mKind);
+ } else {
+ album.setClusterKind(mKind);
}
}
album.setMediaItems(clustering.getCluster(i));