diff options
author | Bobby Georgescu <georgescu@google.com> | 2013-03-07 22:14:59 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-03-07 22:14:59 +0000 |
commit | 37dae82890a04fd4912d3a704066cb800712686f (patch) | |
tree | 4623c85e07fbd350a61d2729eac6a1fa3b2d5a71 /src/com/android/photos/data | |
parent | e988eba768db85bb81b335c0c1db5aad6988480d (diff) | |
parent | ef620effddf212694b61ccb26c36c968f1e7d626 (diff) | |
download | android_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.java | 22 |
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()); } |