From 83dae75ad4f5696756eac9c571219bfedfd5022a Mon Sep 17 00:00:00 2001 From: Chao Zhang Date: Thu, 12 May 2016 17:28:42 +0800 Subject: 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 --- src/com/android/gallery3d/data/ClusterAlbumSet.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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)); -- cgit v1.2.3