summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/data/ComboAlbum.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/data/ComboAlbum.java')
-rw-r--r--src/com/android/gallery3d/data/ComboAlbum.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/data/ComboAlbum.java b/src/com/android/gallery3d/data/ComboAlbum.java
index e100dc3e6..cadd9f8af 100644
--- a/src/com/android/gallery3d/data/ComboAlbum.java
+++ b/src/com/android/gallery3d/data/ComboAlbum.java
@@ -27,7 +27,7 @@ public class ComboAlbum extends MediaSet implements ContentListener {
@SuppressWarnings("unused")
private static final String TAG = "ComboAlbum";
private final MediaSet[] mSets;
- private final String mName;
+ private String mName;
public ComboAlbum(Path path, MediaSet[] mediaSets, String name) {
super(path, nextVersionNumber());
@@ -76,6 +76,10 @@ public class ComboAlbum extends MediaSet implements ContentListener {
return mName;
}
+ public void useNameOfChild(int i) {
+ if (i < mSets.length) mName = mSets[i].getName();
+ }
+
@Override
public long reload() {
boolean changed = false;