Bläddra i källkod

Tried to fix the "Spotbug" NAB detections

Signed-off-by: Kilian Périsset <kilian.perisset@infomaniak.com>
Kilian Périsset 5 år sedan
förälder
incheckning
d0b883f61d

+ 2 - 2
src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java

@@ -1505,7 +1505,7 @@ public class FileDisplayActivity extends FileActivity
                         // TODO what about other kind of previews?
                     }
                 }
-                getListOfFilesFragment().setLoading(false);
+                getListOfFilesFragment().setLoading(Boolean.FALSE);
             } finally {
                 if (intent != null) {
                     removeStickyBroadcast(intent);
@@ -2218,7 +2218,7 @@ public class FileDisplayActivity extends FileActivity
                                         null
                                 );
 
-                                getListOfFilesFragment().setLoading(true);
+                                getListOfFilesFragment().setLoading(Boolean.TRUE);
 
                                 setBackgroundText();
 

+ 1 - 1
src/main/java/com/owncloud/android/ui/activity/FolderPickerActivity.java

@@ -264,7 +264,7 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
                                                                             getApplicationContext());
 
         refreshFolderOperation.execute(getAccount(), this, null, null);
-        getListOfFilesFragment().setLoading(true);
+        getListOfFilesFragment().setLoading(Boolean.TRUE);
         setBackgroundText();
     }
 

+ 1 - 1
src/main/java/com/owncloud/android/ui/asynctasks/PhotoSearchTask.java

@@ -116,7 +116,7 @@ public class PhotoSearchTask extends AsyncTask<Void, Void, RemoteOperationResult
                 }
             }
 
-            photoFragment.setLoading(false);
+            photoFragment.setLoading(Boolean.FALSE);
 
             if (!result.isSuccess() && !isCancelled()) {
                 photoFragment.setEmptyListMessage(ExtendedListFragment.SearchType.PHOTO_SEARCH);

+ 1 - 1
src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java

@@ -1625,7 +1625,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
                                 @Override
                                 public void run() {
                                     if (fileDisplayActivity != null) {
-                                        setLoading(false);
+                                        setLoading(Boolean.FALSE);
                                     }
                                 }
                             });