Commit Graph

729 Commits

Author SHA1 Message Date
60fb26ab0a Speed up directory listing by factor 4-5 by improving getChildren function
The speed up is achieved by multiple changes:
1) Use list() instead of listFiles() function. The former only returns a String array
containing the relative pathnames, and therefore is faster and consumes less
memory.
2) The list() function should only be called once. In the previous implementation,
the function was called twice (for directories). The first time it was only checked
against null and then thrown away.
3) The Strings do not have a "isHidden" property, obviously. However, hidden
files can be easily distinguished by checking if the first character is a dot (".").

Performance tests were done in a directory with 12 sub-directories that have
about 900 children in total. The old implementation needed about 400-500 ms
to list the directory. With the new implementation, only 100ms are needed.
2017-07-08 15:11:56 +02:00
1a1aa647c5 update commons to 2.21.15 2017-06-25 23:56:37 +02:00
17ff2f6f78 updating changelog 2017-06-25 23:56:18 +02:00
0a53d9d097 update version to 2.3.0 2017-06-25 23:56:13 +02:00
419c1f501b add a menu button for temporarily showing hidden items 2.3.0 2017-06-21 23:16:23 +02:00
362fa75b10 remove mdpi resources 2017-06-21 23:04:07 +02:00
403615738a adding rounded launcher icon 2017-06-21 23:03:45 +02:00
f79b4d258b do not share hidden folder files if showing hidden is disabled 2017-06-21 19:37:48 +02:00
4107d830a3 allow sharing folder content, related to #55 2017-06-21 19:27:59 +02:00
b67a9e56a2 use more advanced mimetype and action checking at sharing files 2017-06-21 18:55:55 +02:00
b27c9bb491 fix #73, add drag-selection to recycler view 2017-06-20 23:32:07 +02:00
c079bbb699 use MyScalableRecyclerView from Commons 2017-06-20 22:30:22 +02:00
9d17c5a568 add a Select All button 2017-06-20 20:39:13 +02:00
dc595c5a0e refactor ItemsAdapter 2017-06-19 23:26:19 +02:00
8c9f7bf050 fix #64, ask for SD card write permission at creating new items 2017-06-19 21:16:31 +02:00
c65f960704 update commons to 2.21.4 2017-06-19 18:16:08 +02:00
e60e3e043e add some proguard rules for keeping line numbers 2017-06-14 23:11:13 +02:00
a65426499e update commons, kotlin, gradle 2017-06-14 23:10:46 +02:00
401ab4f3e6 Merge pull request #71 from mople71/master
Czech translation
2017-05-28 21:13:22 +02:00
f19c0b6143 Czech translation 2017-05-28 14:54:33 +02:00
92ecf9fc26 update gradle to 2.3.2 2017-05-24 20:51:42 +02:00
55098d5af7 Merge pull request #69 from aligitor/master
Updated hu (Hungarian) translation
2017-04-25 09:57:31 +02:00
59bf1e9380 Updated hu (Hungarian) translation
Commit made via Stringlate
2017-04-25 09:37:32 +02:00
01e459d4d5 updating changelog 2.2.2 2017-04-24 19:08:42 +02:00
61aeb4b875 update version to 2.2.2 2017-04-24 19:08:37 +02:00
333cacfd03 fix #61, properly show root folder content 2017-04-24 19:03:54 +02:00
9e3207f1bb updating changelog 2.2.1 2017-04-19 21:18:02 +02:00
fee95bd35c update version to 2.2.1 2017-04-19 21:16:34 +02:00
8c457f0a4c remove the leftovers of the previous copy/move dialog 2017-04-19 21:13:36 +02:00
69aacd57d3 use the copy function of the Commons library 2017-04-19 20:46:30 +02:00
40ce55a55e Merge pull request #68 from trubitsyn/master
Finish Russian translation
2017-04-19 19:52:00 +02:00
0a1d1077a1 Finish Russian translation 2017-04-19 20:25:42 +03:00
1e67bc9823 remove some redundant function 2017-04-18 18:13:26 +02:00
a9520ef182 reset the actMode on destroy 2017-04-17 23:12:12 +02:00
248595cde2 adding a null check to listFiles() 2017-04-17 23:08:50 +02:00
db42e1ed26 update commons to 2.16.9 2017-04-17 23:05:54 +02:00
9d7c0c74b8 updating changelog 2.2.0 2017-04-08 00:12:57 +02:00
d781ffed15 update version to 2.2.0 2017-04-08 00:11:28 +02:00
b57c8da986 dont do anything on Home press when we are home 2017-04-08 00:11:01 +02:00
84bc826988 update gradle and commons 2017-04-08 00:08:12 +02:00
8afee1f56b Merge pull request #65 from rodymacedo/patch-1
Update strings.xml
2017-03-28 22:41:03 +02:00
6fb203d4dc Update strings.xml 2017-03-28 17:34:36 -03:00
d2ecebba24 make activity at fillItems nullable 2017-03-28 22:32:36 +02:00
b11cf0a525 adding a brazil portuguese file 2017-03-28 20:28:15 +02:00
e8eceece86 Merge pull request #63 from anthologist/master
Update italian
2017-03-23 15:02:11 +01:00
06c5a71fb2 Update strings.xml 2017-03-23 14:27:53 +01:00
b7a13b1a8b Merge pull request #62 from smarquespt/master
Portuguese update
2017-03-21 18:16:09 +01:00
467368e668 Portuguese update 2017-03-21 16:12:32 +00:00
b7815d1d44 update commons to 2.13.7 2017-03-19 20:49:05 +01:00
3b3e920cfa use the default version of Portugal language 2017-03-19 20:06:23 +01:00