summaryrefslogtreecommitdiff
path: root/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2013-04-04 09:17:26 -0400
committerChris Wren <cwren@android.com>2013-04-09 01:54:16 -0400
commit88d80f4471c900628e2cb6eef23029b99af48e09 (patch)
tree6829842f0dff21db530936037cd242853f43b416 /src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
parent1dc94b55d59f5c4dbf86788d0c32b7ac4449909a (diff)
downloadPhotoTable-88d80f4471c900628e2cb6eef23029b99af48e09.tar.gz
story mode for PhotoTable.
also some cleanup and refactoring also fix stuck alphas Bug: 8399588 Change-Id: Id236b29701ede3696c8f1f0ccc6522eb8256ff25
Diffstat (limited to 'src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java')
-rw-r--r--src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java b/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
index 6c5a88a..42f2eb0 100644
--- a/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
+++ b/src/com/android/dreams/phototable/SectionedAlbumDataAdapter.java
@@ -21,10 +21,9 @@ import android.database.DataSetObserver;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
-import android.view.View.OnClickListener;
import android.view.ViewGroup;
-import android.widget.TextView;
import android.widget.ListAdapter;
+import android.widget.TextView;
import java.util.Arrays;
import java.util.List;
@@ -39,13 +38,11 @@ public class SectionedAlbumDataAdapter extends DataSetObserver implements ListAd
private final LayoutInflater mInflater;
private final int mLayout;
private final AlbumDataAdapter mAlbumData;
- private final Context mContext;
private int[] sections;
public SectionedAlbumDataAdapter(Context context, SharedPreferences settings,
int headerLayout, int itemLayout, List<PhotoSource.AlbumData> objects) {
mLayout = headerLayout;
- mContext = context;
mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
mAlbumData = new AlbumDataAdapter(context, settings, itemLayout, objects);
mAlbumData.sort(new AlbumDataAdapter.AccountComparator());