Browse Source

Revert "minor code cleanups due to code review"

This reverts commit ea6dcaa958a233d29bffd0ee01932b9e75f86122.
AndyScherzinger 7 years ago
parent
commit
727a7326ee

+ 11 - 2
src/main/java/com/owncloud/android/datamodel/OCFile.java

@@ -243,7 +243,7 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
      *
      * @return true if it is
      */
-    private boolean existsOnDevice() {
+    public boolean existsOnDevice() {
         if (mLocalPath != null && mLocalPath.length() > 0) {
             File file = new File(mLocalPath);
             return (file.exists());
@@ -510,6 +510,15 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
         return (parentPath.endsWith("/")) ? parentPath : (parentPath + "/");
     }
 
+    /**
+     * Check, if this file needs updating
+     *
+     * @return
+     */
+    public boolean needsUpdatingWhileSaving() {
+        return mNeedsUpdating;
+    }
+
     public boolean needsUpdateThumbnail() {
         return mNeedsUpdateThumbnail;
     }
@@ -679,7 +688,7 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
         return (permissions != null && permissions.contains(PERMISSION_SHARED_WITH_ME));
     }
 
-    public boolean canReshare() {
+    public boolean canReshare(){
         String permissions = getPermissions();
         return permissions != null && permissions.contains(PERMISSION_CAN_RESHARE);
     }

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

@@ -153,7 +153,6 @@ public class EditShareFragment extends Fragment {
     }
 
     /**
-     * <p>
      * Get known server capabilities from DB
      * <p/>
      * Depends on the parent Activity provides a {@link com.owncloud.android.datamodel.FileDataStorageManager}
@@ -169,7 +168,7 @@ public class EditShareFragment extends Fragment {
     }
 
     /**
-     * Updates the UI with the current permissions in the edited {@link OCShare}
+     * Updates the UI with the current permissions in the edited {@OCShare}
      *
      * @param editShareView     Root view in the fragment.
      */