mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +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) {
|
||||
// Hardcoding column positions!
|
||||
Category c = new Category();
|
||||
c.name = cursor.getString(0);
|
||||
c.lastUsed = new Date(cursor.getLong(1));
|
||||
c.timesUsed = cursor.getInt(2);
|
||||
c.contentUri = ContributionsContentProvider.uriForId(cursor.getInt(0));
|
||||
c.name = cursor.getString(1);
|
||||
c.lastUsed = new Date(cursor.getLong(2));
|
||||
c.timesUsed = cursor.getInt(3);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue