Commit Graph

302 Commits

Author SHA1 Message Date
tibbi f8b2edba7e add a null check at ReadTextActivity 2017-10-29 10:49:43 +01:00
tibbi 3c88cbfbee do not try opening any path if the fragment is gone 2017-10-29 10:45:54 +01:00
tibbi 30bd5dc250 clear selection at updating items 2017-10-29 10:44:08 +01:00
tibbi 5dc8907944 try opening folders from content uris too 2017-10-23 14:19:38 +02:00
tibbi 534a64c2f3 make sure we are opening a valid path 2017-10-23 14:17:04 +02:00
tibbi 0187fb3c03 fix #84, handle view folder intent 2017-10-23 13:31:15 +02:00
tibbi f00aee04b6 remove a redundant showHidden setting 2017-10-23 12:58:37 +02:00
tibbi 4b772a9bfb refresh items on resume 2017-10-23 12:54:58 +02:00
tibbi 24ae1241ca allow saving files in the file editor 2017-10-23 12:47:45 +02:00
tibbi cb4b63a836 add a Save menu button 2017-10-23 12:00:35 +02:00
tibbi b2434fb6f2 use an editable EditText at file editor 2017-10-23 11:52:26 +02:00
tibbi 5d13b65b03 make sure we have write storage permission before doing anything at editor 2017-10-23 11:38:32 +02:00
tibbi 357286f1c9 use out own method for getting mimetype from extension 2017-10-23 11:34:42 +02:00
tibbi f996cceb7a add a simple text file reader 2017-10-23 11:27:16 +02:00
tibbi f081f8039a handle picking multiple items at get_content too 2017-10-23 10:28:00 +02:00
tibbi 679d68fc26 handle get_content intent 2017-10-23 10:13:06 +02:00
tibbi e0703acd9d use the Commons way of determining mimetype of multiple uris 2017-10-22 22:56:40 +02:00
tibbi 2969314cc9 properly update all elements if some colors change 2017-10-22 21:34:29 +02:00
tibbi 72fb8256d1 keep updating a single fragment instead of creating new ones 2017-10-22 21:17:26 +02:00
tibbi ccc1b8bade minor code style updates here and there 2017-10-22 17:40:37 +02:00
tibbi fd1faf3071 update Commons to 2.30.9 2017-10-22 17:20:16 +02:00
tibbi 44f7543ef1 make fragmentView nullable 2017-10-22 15:07:10 +02:00
tibbi 5645bfc9d6 use adapterPosition at the ItemsAdapter 2017-10-02 23:25:06 +02:00
tibbi a4129f1a14 store internal storage path asap 2017-10-02 21:20:21 +02:00
tibbi b35a8a74a0 make sure we dont trim out the slash of root folder 2017-10-02 21:11:47 +02:00
tibbi b8c1e9bdfb check if the rooted device has a Hard links column at LS command 2017-10-02 21:11:29 +02:00
tibbi f7156ace2b remove some redundant overrides 2017-10-01 22:36:59 +02:00
tibbi 81164edc27 update Commons to 2.28.7 for fingerprint protection 2017-09-27 22:25:18 +02:00
tibbi 1dd717898d update commons to 2.27.8 2017-09-04 19:58:07 +02:00
tibbi 58f75e3b8a updating release notes 2017-09-04 19:50:13 +02:00
tibbi 9f69360004 add some handling for copying root items 2017-09-04 19:48:31 +02:00
tibbi 794f6cc462 make isPathOnRoot a context extension 2017-09-04 19:27:19 +02:00
tibbi 32ca1fdf70 improve root content deleting 2017-09-04 19:23:07 +02:00
tibbi 5cb9b6cc4f recheck at app launch if root permission hasnt been revoked 2017-09-04 18:58:15 +02:00
tibbi fa35107abe merge everything we need about root items into 1 command 2017-09-04 16:36:03 +02:00
tibbi 5f60827763 parse the root file sizes from the ls command 2017-09-04 11:29:11 +02:00
tibbi 1c3007d767 adding a missing import 2017-09-04 10:04:34 +02:00
tibbi 641658ead6 properly fetch root filediritem children counts and file sizes 2017-09-03 23:05:58 +02:00
tibbi 4d5a4098b4 avoid duplicate folder initialization at app startup 2017-09-03 20:35:05 +02:00
tibbi 2532c43f7e list the root files that should be visible 2017-09-03 20:09:03 +02:00
tibbi 57aa9054f2 split file fetching between regular and root folders 2017-09-03 19:57:01 +02:00
tibbi 2ae28ca91b show the root access toggle only if root is available 2017-09-03 19:34:54 +02:00
tibbi c8d790b246 add a simple echo message at checking root access 2017-09-03 18:53:11 +02:00
tibbi 2aafa3344b add a switch for toggling root access 2017-09-03 18:26:48 +02:00
tibbi 2bf39803de move the super.commandOutput as the last function 2017-09-03 18:19:16 +02:00
tibbi 80d834e7eb add a helper function for fetching root items 2017-09-03 18:18:03 +02:00
tibbi 4ad01751af allow changing the destination of compressed file 2017-09-03 15:48:07 +02:00
tibbi 535b9ce33e catch exceptions at sharing files 2017-09-03 15:30:59 +02:00
tibbi 5f39a70be3 some updates related to file copy/move/de/compress 2017-09-03 12:59:52 +02:00
tibbi 9714d8cf32 add a null check at getting an sd card file output stream 2017-09-03 10:31:36 +02:00
tibbi ce63adf6f1 fix decompressing folders on sd cards 2017-09-03 10:23:32 +02:00
tibbi 21b8202fbc improve file unzipping on SD cards 2017-09-02 23:32:26 +02:00
tibbi 02acd5cc84 properly get the OutputStream at SD cards too 2017-09-02 23:02:35 +02:00
tibbi a9bf677e78 implement Decompressing 2017-09-02 22:20:35 +02:00
tibbi bc3b6ac70a show a Decompress actionmenu button when a selected file is a zip file 2017-09-02 21:30:15 +02:00
tibbi e3def060d8 add the root folder of zipped files in the zip file too 2017-09-02 20:16:11 +02:00
tibbi 5a0f6adff8 updating the code compression code 2017-09-02 17:47:21 +02:00
tibbi 9fa228d989 remove a duplicate part from zipping 2017-09-01 23:20:40 +02:00
tibbi b604af77ab improve the compression functionality 2017-08-31 16:11:14 +02:00
tibbi c89fcb8692 handle the compressing functionality 2017-08-31 11:18:30 +02:00
tibbi 1ef349384d add a dialog for setting the destination zip filename 2017-08-31 10:43:01 +02:00
tibbi 48d0a1885e fix sharing files 2017-08-31 09:38:46 +02:00
tibbi 3bacadac13 adding an initial implementation of compressing 2017-08-30 22:52:14 +02:00
tibbi 433d31385e misc code style updates 2017-08-30 20:53:51 +02:00
tibbi 902ccdabf1 add the password protection to release notes 2017-08-07 22:44:27 +02:00
tibbi 5f50da2951 add a menu item for stoping temporarily showing hidden items 2017-08-07 22:28:57 +02:00
tibbi b6290c7c5e add password protection for showing hidden items 2017-08-07 22:24:07 +02:00
tibbi 9d81c1a667 add an activity check at filling items 2017-08-07 21:59:30 +02:00
tibbi 035d112c1d flip "Go to favorite" and "Sort" 2017-07-12 20:29:57 +02:00
tibbi 1dcfb9e817 updating Commons and kotlin 2017-07-09 22:24:37 +02:00
tibbi 0d61293a10 small edit to fetching children 2017-07-09 09:45:39 +02:00
Tibor Kaputa 2c4ef37f15 Merge pull request #75 from rsnitsch/improve_get_children_performance
Speed up directory listing by factor 4-5 by improving getChildren function
2017-07-09 09:43:46 +02:00
Robert Nitsch 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
tibbi 1a1aa647c5 update commons to 2.21.15 2017-06-25 23:56:37 +02:00
tibbi 419c1f501b add a menu button for temporarily showing hidden items 2017-06-21 23:16:23 +02:00
tibbi f79b4d258b do not share hidden folder files if showing hidden is disabled 2017-06-21 19:37:48 +02:00
tibbi 4107d830a3 allow sharing folder content, related to #55 2017-06-21 19:27:59 +02:00
tibbi b67a9e56a2 use more advanced mimetype and action checking at sharing files 2017-06-21 18:55:55 +02:00
tibbi b27c9bb491 fix #73, add drag-selection to recycler view 2017-06-20 23:32:07 +02:00
tibbi c079bbb699 use MyScalableRecyclerView from Commons 2017-06-20 22:30:22 +02:00
tibbi 9d17c5a568 add a Select All button 2017-06-20 20:39:13 +02:00
tibbi dc595c5a0e refactor ItemsAdapter 2017-06-19 23:26:19 +02:00
tibbi 8c9f7bf050 fix #64, ask for SD card write permission at creating new items 2017-06-19 21:16:31 +02:00
tibbi a65426499e update commons, kotlin, gradle 2017-06-14 23:10:46 +02:00
tibbi 333cacfd03 fix #61, properly show root folder content 2017-04-24 19:03:54 +02:00
tibbi 8c457f0a4c remove the leftovers of the previous copy/move dialog 2017-04-19 21:13:36 +02:00
tibbi 69aacd57d3 use the copy function of the Commons library 2017-04-19 20:46:30 +02:00
tibbi 1e67bc9823 remove some redundant function 2017-04-18 18:13:26 +02:00
tibbi a9520ef182 reset the actMode on destroy 2017-04-17 23:12:12 +02:00
tibbi 248595cde2 adding a null check to listFiles() 2017-04-17 23:08:50 +02:00
tibbi b57c8da986 dont do anything on Home press when we are home 2017-04-08 00:11:01 +02:00
tibbi 84bc826988 update gradle and commons 2017-04-08 00:08:12 +02:00
tibbi d2ecebba24 make activity at fillItems nullable 2017-03-28 22:32:36 +02:00
tibbi 129ce686e0 adding the sorting in release notes 2017-03-19 11:53:25 +01:00
tibbi 2f4119faac adding file sorting 2017-03-19 11:50:57 +01:00
tibbi 12d234d0d5 make item displaying asynchronous 2017-03-19 10:58:21 +01:00
tibbi c2fe859e94 change sorting by "Date taken" to "Extension" 2017-03-19 10:39:47 +01:00
tibbi 6ccd49337a add some initial sorting related things 2017-03-19 10:06:57 +01:00
tibbi e39c2955e7 update Release notes 2017-03-18 20:31:39 +01:00
tibbi 3e7fec4f72 show the total file count at long press selection too 2017-03-18 20:27:54 +01:00