summaryrefslogtreecommitdiff
path: root/src/com/android/dreams/phototable/PhotoTableDream.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/dreams/phototable/PhotoTableDream.java')
-rw-r--r--src/com/android/dreams/phototable/PhotoTableDream.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/dreams/phototable/PhotoTableDream.java b/src/com/android/dreams/phototable/PhotoTableDream.java
index ba79769..20fd566 100644
--- a/src/com/android/dreams/phototable/PhotoTableDream.java
+++ b/src/com/android/dreams/phototable/PhotoTableDream.java
@@ -42,9 +42,9 @@ public class PhotoTableDream extends DreamService {
super.onAttachedToWindow();
LayoutInflater inflater =
(LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- SharedPreferences settings = getSharedPreferences(PhotoTableDreamSettings.PREFS_NAME, 0);
- Set<String> enabledAlbums = AlbumSettings.getEnabledAlbums(settings);
- if (AlbumSettings.isConfigured(settings)) {
+ AlbumSettings settings = AlbumSettings.getAlbumSettings(
+ getSharedPreferences(PhotoTableDreamSettings.PREFS_NAME, 0));
+ if (settings.isConfigured()) {
ViewGroup view = (ViewGroup) inflater.inflate(R.layout.table, null);
PhotoTable table = (PhotoTable) view.findViewById(R.id.table);
table.setDream(this);