Sfoglia il codice sorgente

switch array allocation to use list size

Joe Apicella 8 anni fa
parent
commit
e9cba821c8

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

@@ -346,6 +346,6 @@ public class LocalFileListAdapter extends BaseAdapter implements FilterableListA
                 ret.add(file);
             }
         }
-        return ret.toArray(new File[0]);
+        return ret.toArray(new File[ret.size()]);
     }
 }