tobiasKaminsky 10 жил өмнө
parent
commit
f273fe03fa

+ 2 - 1
src/com/owncloud/android/ui/adapter/FileListListAdapter.java

@@ -527,7 +527,8 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
             public int compare(OCFile o1, OCFile o2) {
                 if (o1.isFolder() && o2.isFolder()) {
                     Long obj1 = getFolderSize(new File(FileStorageUtils.getDefaultSavePathFor(mAccount.name, o1)));
-                    return val * obj1.compareTo(getFolderSize(new File(FileStorageUtils.getDefaultSavePathFor(mAccount.name, o2))));
+                    return val * obj1.compareTo(getFolderSize(
+                            new File(FileStorageUtils.getDefaultSavePathFor(mAccount.name, o2))));
                 }
                 else if (o1.isFolder()) {
                     return -1;

+ 2 - 1
src/com/owncloud/android/ui/adapter/LocalFileListAdapter.java

@@ -133,7 +133,8 @@ public class LocalFileListAdapter extends BaseAdapter implements ListAdapter {
             fileSizeV.setVisibility(View.VISIBLE);
             fileSizeV.setText(DisplayUtils.bytesToHumanReadable(file.length()));
             
-            view.findViewById(R.id.localFileIndicator).setVisibility(View.INVISIBLE);   // not GONE; the alignment changes; ugly way to keep it
+            // not GONE; the alignment changes; ugly way to keep it
+            view.findViewById(R.id.localFileIndicator).setVisibility(View.INVISIBLE);   
             view.findViewById(R.id.favoriteIcon).setVisibility(View.GONE);
             
             view.findViewById(R.id.sharedIcon).setVisibility(View.GONE);

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

@@ -151,8 +151,8 @@ implements OnItemClickListener, OnEnforceableRefreshListener {
 
     
     /**
-     * Calculates the position of the item that will be used as a reference to reposition the visible items in the list when
-     * the device is turned to other position. 
+     * Calculates the position of the item that will be used as a reference to reposition the visible items 
+     * in the list when the device is turned to other position. 
      * 
      * THe current policy is take as a reference the visible item in the center of the screen.  
      * 
@@ -170,7 +170,8 @@ implements OnItemClickListener, OnEnforceableRefreshListener {
     /**
      * Sets the visible part of the list from the reference position.
      * 
-     * @param   position    Reference position previously returned by {@link LocalFileListFragment#getReferencePosition()}
+     * @param   position    Reference position previously 
+     * returned by {@link LocalFileListFragment#getReferencePosition()}
      */
     protected void setReferencePosition(int position) {
         if (imageView != null) {