Эх сурвалжийг харах

codacy cleanup + fixed javaDoc

AndyScherzinger 7 жил өмнө
parent
commit
27a2041db5

+ 4 - 5
src/main/java/com/owncloud/android/ui/fragment/FileDetailFragment.java

@@ -708,15 +708,14 @@ public class FileDetailFragment extends FileFragment implements OnClickListener
     }
 
     /**
-     * Helper class responsible for updating the progress bar shown for file uploading or
-     * downloading
+     * Helper class responsible for updating the progress bar shown for file downloading.
      */
     private class ProgressListener implements OnDatatransferProgressListener {
-        int mLastPercent = 0;
-        WeakReference<ProgressBar> mProgressBar;
+        private int mLastPercent = 0;
+        private WeakReference<ProgressBar> mProgressBar;
 
         ProgressListener(ProgressBar progressBar) {
-            mProgressBar = new WeakReference<ProgressBar>(progressBar);
+            mProgressBar = new WeakReference<>(progressBar);
         }
 
         @Override