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;
|
||||
if (cursor != null && cursor.moveToFirst()) {
|
||||
if (cursor != null) {
|
||||
if (cursor.moveToFirst()) {
|
||||
share = createShareInstance(cursor);
|
||||
}
|
||||
cursor.close();
|
||||
}
|
||||
return share;
|
||||
|
@ -1620,11 +1622,14 @@ public class FileDataStorageManager {
|
|||
}
|
||||
ArrayList<OCShare> shares = new ArrayList<OCShare>();
|
||||
OCShare share = null;
|
||||
if (cursor != null && cursor.moveToFirst()) {
|
||||
if (cursor != null) {
|
||||
if (cursor.moveToFirst()) {
|
||||
do {
|
||||
share = createShareInstance(cursor);
|
||||
shares.add(share);
|
||||
} while (cursor.moveToNext());
|
||||
}
|
||||
|
||||
cursor.close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue