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

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

@@ -122,9 +122,10 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
             }
         }
         
+        // TODO threshold as constant in Preferences
         // > 50% Images --> image view
         boolean fileView = true;
-        if ((count / mFiles.size()) >= 0.8){
+        if ((count / mFiles.size()) >= 0.5){
             fileView = false;
         } else {
             fileView = true;

+ 1 - 0
src/com/owncloud/android/ui/fragment/OCFileListFragment.java

@@ -396,6 +396,7 @@ public class OCFileListFragment extends ExtendedListFragment {
             }
             
             // > 50% Images --> image view
+            // TODO threshold as constant in Preferences
             if ((count / files.size()) >= 0.5){
                 Log_OC.i(TAG, "Image View");
                 switchImageView();