Browse Source

codacy: Document empty constructor (rather make setting flag more explicit in this case)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 5 years ago
parent
commit
9beecfa184
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/owncloud/android/ui/fragment/PhotoFragment.java

+ 2 - 2
src/main/java/com/owncloud/android/ui/fragment/PhotoFragment.java

@@ -53,10 +53,10 @@ public class PhotoFragment extends OCFileListFragment {
     private SearchRemoteOperation searchRemoteOperation;
     private AsyncTask photoSearchTask;
     private SearchEvent searchEvent;
-    private boolean refresh = false;
+    private boolean refresh;
 
     public PhotoFragment() {
-
+        this.refresh = false;
     }
 
     public PhotoFragment(boolean refresh) {