Pārlūkot izejas kodu

fix name and javaDoc of updateMethod

AndyScherzinger 6 gadi atpakaļ
vecāks
revīzija
2d55824cf6

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

@@ -1912,7 +1912,7 @@ public class FileDisplayActivity extends HookActivity
 
         if (fileDetailFragment!=null && fileDetailFragment instanceof FileDetailFragment) {
             ((FileDetailFragment) fileDetailFragment).getFileDetailSharingFragment()
-                    .onUpdateShareInformations(result, getFile());
+                    .onUpdateShareInformation(result, getFile());
         }
     }
 

+ 4 - 3
src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java

@@ -317,11 +317,12 @@ public class FileDetailSharingFragment extends Fragment implements UserListAdapt
     }
 
     /**
-     * Updates the UI after the result of an update operation on the edited {@link OCShare} permissions.
+     * Updates the UI after the result of an update operation on the edited {@link OCFile}.
      *
-     * @param result Result of an update on the edited {@link OCShare} permissions.
+     * @param result {@link RemoteOperationResult} of an update on the edited {@link OCFile} sharing information.
+     * @param file   the edited {@link OCFile}
      */
-    public void onUpdateShareInformations(RemoteOperationResult result, OCFile file) {
+    public void onUpdateShareInformation(RemoteOperationResult result, OCFile file) {
         this.file = file;
 
         if (result.isSuccess()) {