summaryrefslogtreecommitdiffstats
path: root/src/com/android/photos/data
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-03-07 22:14:59 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-03-07 22:14:59 +0000
commit37dae82890a04fd4912d3a704066cb800712686f (patch)
tree4623c85e07fbd350a61d2729eac6a1fa3b2d5a71 /src/com/android/photos/data
parente988eba768db85bb81b335c0c1db5aad6988480d (diff)
parentef620effddf212694b61ccb26c36c968f1e7d626 (diff)
downloadandroid_packages_apps_Snap-37dae82890a04fd4912d3a704066cb800712686f.tar.gz
android_packages_apps_Snap-37dae82890a04fd4912d3a704066cb800712686f.tar.bz2
android_packages_apps_Snap-37dae82890a04fd4912d3a704066cb800712686f.zip
Merge "Album set shim" into gb-ub-photos-bryce
Diffstat (limited to 'src/com/android/photos/data')
-rw-r--r--src/com/android/photos/data/AlbumSetLoader.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/com/android/photos/data/AlbumSetLoader.java b/src/com/android/photos/data/AlbumSetLoader.java
index f5fc3b732..b2b5204e6 100644
--- a/src/com/android/photos/data/AlbumSetLoader.java
+++ b/src/com/android/photos/data/AlbumSetLoader.java
@@ -13,20 +13,20 @@ public class AlbumSetLoader {
public static final int INDEX_COUNT_PENDING_UPLOAD = 6;
public static final int INDEX_COUNT = 7;
+ public static final String[] PROJECTION = {
+ "_id",
+ "title",
+ "timestamp",
+ "thumb_uri",
+ "thumb_width",
+ "thumb_height",
+ "count_pending_upload",
+ "_count"
+ };
public static final MatrixCursor MOCK = createRandomCursor(30);
private static MatrixCursor createRandomCursor(int count) {
- String[] rows = {
- "_id",
- "title",
- "timestamp",
- "thumb_uri",
- "thumb_width",
- "thumb_height",
- "count_pending_upload",
- "_count"
- };
- MatrixCursor c = new MatrixCursor(rows, count);
+ MatrixCursor c = new MatrixCursor(PROJECTION, count);
for (int i = 0; i < count; i++) {
c.addRow(createRandomRow());
}