mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Formatting
This commit is contained in:
parent
20c9a86ea7
commit
75f109455b
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ public class Contribution extends Media {
|
||||||
Contribution c = new Contribution();
|
Contribution c = new Contribution();
|
||||||
|
|
||||||
//Check that cursor has a value to avoid CursorIndexOutOfBoundsException
|
//Check that cursor has a value to avoid CursorIndexOutOfBoundsException
|
||||||
if(cursor.getCount() > 0) {
|
if (cursor.getCount() > 0) {
|
||||||
c.contentUri = fr.free.nrw.commons.contributions.ContributionsContentProvider.uriForId(cursor.getInt(0));
|
c.contentUri = fr.free.nrw.commons.contributions.ContributionsContentProvider.uriForId(cursor.getInt(0));
|
||||||
c.filename = cursor.getString(1);
|
c.filename = cursor.getString(1);
|
||||||
c.localUri = TextUtils.isEmpty(cursor.getString(2)) ? null : Uri.parse(cursor.getString(2));
|
c.localUri = TextUtils.isEmpty(cursor.getString(2)) ? null : Uri.parse(cursor.getString(2));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue