mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Tweak column order...?
This commit is contained in:
parent
58e48399d5
commit
0e23531f59
1 changed files with 4 additions and 3 deletions
|
|
@ -107,9 +107,10 @@ public class Category /*implements Parcelable */{
|
||||||
public static Category fromCursor(Cursor cursor) {
|
public static Category fromCursor(Cursor cursor) {
|
||||||
// Hardcoding column positions!
|
// Hardcoding column positions!
|
||||||
Category c = new Category();
|
Category c = new Category();
|
||||||
c.name = cursor.getString(0);
|
c.contentUri = ContributionsContentProvider.uriForId(cursor.getInt(0));
|
||||||
c.lastUsed = new Date(cursor.getLong(1));
|
c.name = cursor.getString(1);
|
||||||
c.timesUsed = cursor.getInt(2);
|
c.lastUsed = new Date(cursor.getLong(2));
|
||||||
|
c.timesUsed = cursor.getInt(3);
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue