summaryrefslogtreecommitdiff
path: root/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2012-12-04 17:35:11 -0500
committerChris Wren <cwren@android.com>2012-12-10 10:48:47 -0500
commit2ccf92a79a2749a6fdaf5c1242f5d72de48ef111 (patch)
treef1cb3df449c936501913735d09da38ec8dd642b9 /src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
parent387363c426e097c358bd41367e0a8f4339fc8dc3 (diff)
downloadPhotoTable-2ccf92a79a2749a6fdaf5c1242f5d72de48ef111.tar.gz
Add 'select all' to photo dream settings.
Bug: 7269182 Change-Id: I78898bb9e76d6233487b4888e56f896f3c6ea72d
Diffstat (limited to 'src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java')
-rw-r--r--src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java b/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
index 6dc3ddf..6c5a88a 100644
--- a/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
+++ b/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
@@ -53,6 +53,16 @@ public class SectionedAlbumDataAdapter extends DataSetObserver implements ListAd
mAlbumData.registerDataSetObserver(this);
}
+ boolean areAllSelected() {
+ return mAlbumData != null && mAlbumData.areAllSelected();
+ }
+
+ void selectAll(boolean select) {
+ if (mAlbumData != null) {
+ mAlbumData.selectAll(select);
+ }
+ }
+
// DataSetObserver
@Override