mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 06:05:42 +03:00
fixed minor warnings
This commit is contained in:
parent
01a70fed85
commit
8da1f33123
1 changed files with 12 additions and 7 deletions
|
@ -1129,8 +1129,10 @@ public class FileDataStorageManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
OCShare share = null;
|
OCShare share = null;
|
||||||
if (cursor != null && cursor.moveToFirst()) {
|
if (cursor != null) {
|
||||||
|
if (cursor.moveToFirst()) {
|
||||||
share = createShareInstance(cursor);
|
share = createShareInstance(cursor);
|
||||||
|
}
|
||||||
cursor.close();
|
cursor.close();
|
||||||
}
|
}
|
||||||
return share;
|
return share;
|
||||||
|
@ -1620,11 +1622,14 @@ public class FileDataStorageManager {
|
||||||
}
|
}
|
||||||
ArrayList<OCShare> shares = new ArrayList<OCShare>();
|
ArrayList<OCShare> shares = new ArrayList<OCShare>();
|
||||||
OCShare share = null;
|
OCShare share = null;
|
||||||
if (cursor != null && cursor.moveToFirst()) {
|
if (cursor != null) {
|
||||||
|
if (cursor.moveToFirst()) {
|
||||||
do {
|
do {
|
||||||
share = createShareInstance(cursor);
|
share = createShareInstance(cursor);
|
||||||
shares.add(share);
|
shares.add(share);
|
||||||
} while (cursor.moveToNext());
|
} while (cursor.moveToNext());
|
||||||
|
}
|
||||||
|
|
||||||
cursor.close();
|
cursor.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue