瀏覽代碼

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 年之前
父節點
當前提交
9beecfa184
共有 1 個文件被更改,包括 2 次插入2 次删除
  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) {