aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* [CMFileManager]Fix CMFileManager sometimes crash.kai.cao2015-05-221-1/+5
| | | | | | sometimes,the CMFileManager crash. Change-Id: Id82ec92c680248539bb070c30b6bf45c2feab6ab
* [CMFileManager]Fix the FileManager Crash.kai.cao2015-05-211-0/+3
| | | | | | the file manager crash sometimes. Change-Id: I775d30f4f81c97a178c93c05ae83a3336fb4caa4
* [CMFileManager] The remember selection don't work when open a filekai.cao2015-05-201-3/+7
| | | | | | | | | | | | | | Preconditions the system have two Activity have the same package name and the two activity receive the same action(Such as MediaPlaybackActivity and AudioPreview in "om.android.music" Procedures 1.Go into Music directory,open a mp3 file. 2.select remember selection in music(this is MediaPlaybackActivity). 3.back to filemanager,and open the file again. The file open as AudioPreview,it should open as MediaPlaybackActivity. Change-Id: I58469b0bf5bece221fdec8be8f2368c8c157a0fb
* Prevent possible OutOfBoundsExceptionMartin Brabham2015-05-191-0/+6
| | | | Change-Id: I8fc90a2ade069764732c35b71c5ae450d5d3cc5a
* CM Easy Mode File Manager Navigation fixesStephen Bird2015-05-141-3/+39
| | | | | | | | | | | | | This patch fixes an issue where the user cannot get back to easy mode without exiting and re-entering the application in certain situations Repro Steps: 1) Select "All" in the easy mode list 2) Action Bar arrow is gone, pressing back on the navbar does not return you to easy mode Change-Id: I5f6b47b8b69e57cffac77f7bfa24f8a75d8ff1d4
* Prevent possible OOBE when ran under monkey testMartin Brabham2015-05-141-0/+4
| | | | Change-Id: I8ec74d9379ba68ad099d89ec7cd16f65e414a213
* [CMFileManager]Fix the software don't hide when the drawerlayout open.kai.cao2015-05-121-0/+27
| | | | | | | | | | | | Procedures 1.Go to “File Manager”. 2.Press Search button and let the software popup. 3.Open the DrawerLayout. the software still show when the drawerlayout popup. Change-Id: I14b4d995b76bb12ae9c71b70dd6bb4b582bd5aa7
* [CMFileManager]Fix the search result does not display the file path when the ↵kai.cao2015-05-051-2/+2
| | | | | | | | | | | | | | | result is zero Procedures 1.Go to “File Manager”. 2.Enter a folder and Input the search button. 3.Input key words which can not be found in the folder. 4.Check the words below of the Search result. the file path don't display when the result is zero. Change-Id: I01ca6d34d0528fb19a5712b3fc8c05d228432173
* [CMFileManager]Fix click two times when check the 'Skip media scan' in ↵kai.cao2015-04-291-1/+1
| | | | | | | | | | | | | | | Secure storage Procedures 1.Go to “File Manager”. 2.Enter the secure directory and Press the menu button. 3.Press the Properties item. 4.Check the media scan. Pop "Failed to prevent media scanning" and should click again. Change-Id: I7990683e373c05fdfcee47bf5189820206bceba5
* [CMFileManager] Fix "File Manager isn't responding..." pops up after tapping ↵kai.cao2015-04-221-10/+10
| | | | | | | | | | | | | | "Secure storage" in File Manager Procedures 1.Go to “File Manager”. 2.Press "Menu" icon on upper left corner,and then tap "Secure storage". 3.Select "CANCEL" when the note "Create storage" pops up. 4.Repeat Step2 again,check the phone Have no response when pressing "Secure storage",wait about 10-20s,the note "File Manager isn't responding..." pops up. Change-Id: I8ce4b55002d6fc34f89c4a59404469e7f3637cbc
* [CMFileManager] Fix the DrawerLayout don't disapper after press back key.kai.cao2015-04-211-0/+4
| | | | | | | | | | | Procedures 1.Go into filemanager and enter a directory(such as Music). 2.Open the menu Button in the top left corner and popup the drawerlayout. 3.press the back key. The DrawerLayout don't disapper and the navigation view back to the next higher level. Change-Id: I13c78491e2be767e7611d57c2c513013d96465eb
* CMFileManager: when cancel coping, the dest file also exists and is incomplete.jing.zhao2015-04-211-0/+5
| | | | | | When cancel coping, will delete the dest file. Change-Id: I0acf7cc196dec82ed2156e9706c1364922581cdf
* CMFileManager: After change language, the navigation view item summary ↵jing.zhao2015-04-211-1/+3
| | | | | | | | | | | | | | doesn't change [The System Language is Chinese] 1. open the CMFileManager Application. 2. press home button and goto Settings to change the System Language from Chinese to English (can change the others). 3. open the CMFileManager again, Click "All" , you can see the item's summary doesn't completely change. Open the CMFileManager, After change language, the item also will change. Change-Id: I40969d98718463996c34951effef50fa4e42c4ec (cherry picked from commit 10a073ee66dfe862804b2c2a39f93662bc554599)
* [CMFileManager] Fix the filemanager can copy parent folder to child folderkai.cao2015-04-211-16/+19
| | | | | | | | | | Procedures 1.Go into filemanager and select a directory(such as Music). 2.enter the Music and copy the folder. The filemanager stay in "copying" interface. Change-Id: I9a765d1d89c4736b26d57bdf99237f04a810f254
* Enable ok button, filename is still valid.Martin Brabham2015-04-171-1/+1
| | | | | Change-Id: I38f3be02e60597a169850c2a47127dac5784236c (cherry picked from commit 16b30c40f8164c760d0e40c00e19bcc4dac67ccf)
* Make the new filename max length error message show.Martin Brabham2015-04-171-1/+1
| | | | Change-Id: Ic997110fb78d253c7d3602a5b81157fceb9f73b2
* CMFileManager: Fix CMFileManager display "sdcard1" and the content is null ↵kai.cao2015-04-171-0/+8
| | | | | | | | | | after adding a new user/guest step: - new user or guest in Settings - Go to CMFileManager and check Change-Id: Id6da696b8173f0544a022bc5e3d64d94b7123526
* CMFileManager: Printing preview content is not show complete.jing.zhao2015-04-171-2/+2
| | | | | | | fix the PageCount from int to double Change-Id: I72f1577f22b563456b43dded4058572d328009c3 (cherry picked from commit ed63368d1d085d4021329d6720ab7a32765b7768)
* Implement a dialog that warns the user that we must expose the content of ↵Martin Brabham2015-04-1712-7/+524
| | | | | | | | | | the file by copying it out to an unsecure location in order to allow the external applications to read the files. Change-Id: I163ccd21678f413170e44cf3e8d341cd4747b1ac (cherry picked from commit 58928e7facbdd63d4320748b277e94417fe402bb)
* Support RTL layouts everywhere.Martin Brabham2015-04-161-25/+0
| | | | | | | | | | | | - Fix custom title text clipping. - Fix breadcrumbs - Remove FSO Dialog permission spinner width adjustment that did not function on RTL. - Fix history and bookmarks items to align properly. - Update layouts to function with RTL Change-Id: I3cd4032887371509ec2847bae6f889558664a356 (cherry picked from commit d0d367d2d681e2372813a81246dea45eab572ce2)
* [CMFileManager] Always display searching progress after back to the search ↵jing.zhao2015-04-151-0/+2
| | | | | | | | | | | | | result view 1.Go into the root directory, click the search icon and input the directory name(Such as: dlt). 2.In Search results view, you can see the dlt directory, then click the directory. 3.press back key, back to the Search results view, the lower right corner's searching progress has always show. After Seaching, the searching progress shouldn't show. Change-Id: Id1a3291effcebcd7c9536dec74175d6d019e83f1 (cherry picked from commit 37e947a354edad76d4e91258b535c4658b54e2e9)
* Implement ability to cancel file copy.Martin Brabham2015-04-1311-27/+133
| | | | | | | | | | - Short circuit Java CopyCommand for move/copy when the user cancels the dialog. - Bubble up CancelledOperationException when the Cancel/Move operation is cancelled. Handle cancellation differently than success. Change-Id: I3e4426aaccf42e12bf299041d489e72b3b76a626 (cherry picked from commit 7e13ec2fa4fc052c2a880a8dba8ed871b3bc10ca)
* Fix deadlock when reading shell output.Matt Garnes2015-04-101-18/+5
| | | | | Change-Id: Ia38ac6c415506f21ffde5a4c3e658e810dea92da (cherry picked from commit 2f7e43ce8f37b61c2998aadc56c6323faae80c51)
* Detect text encoding with juniversalchardet.Matt Garnes2015-04-1012-82/+133
| | | | | | | | | | - When opening files in the built in editor for display, detect the encoding with juniversalchardet, so that the correct encoding will be used. - Use byte buffers to back ShellConsole instead of StringBuffers Change-Id: I85fa567ef589a82f1c8604f1f215647376c31c9a (cherry picked from commit 55c55835d3bd685dde542b4f5952ce401542ab84)
* CMFileManager: change dialog buttons to use dialog_text_color themeRaj Yengisetty2015-04-101-2/+1
| | | | | | | | Also remove themed button background for dialog buttons, causes the dialog buttons to appear too close to each other. Change-Id: I7059ad3da2b958aeca63d451fbd4cb1a26e792a4 (cherry picked from commit 1ac66923d6169e31eaccc148563f7116de894567)
* Add character limit for name input dialog.Martin Brabham2015-04-031-2/+18
| | | | | Change-Id: I75539bbe90dbc278b360e1246c5218101d77abf7 (cherry picked from commit d34dfc6892760eb14a553bd9774a65aa211f6d7b)
* Fix support for USB OTG.Matt Garnes2015-04-024-16/+25
| | | | | | | | | | | Properly listen for the Broadcast with an IntentFilter that includes the path data scheme. Reload the mounted volumes upon ACTION_MEDIA_MOUNTED AND ACTION_MEDIA_UNMOUNTED. Change-Id: I71d90978fef05419d912ef2398bf99c23fdefee6 (cherry picked from commit e3922e43c8988c499c85115f1f14bef8c925e1ee) (cherry picked from commit 8656db649d0a88fc126e468b7ac81d8d3ea091ae) (cherry picked from commit 860ef9fbf513e1a4267e391453a2021d0ac20f63)
* CMFileManager: show hamburger icon for the navigation drawerRaj Yengisetty2015-04-011-0/+1
| | | | | | This was broken in 5.1 Change-Id: Ib2ec68a4b9c288855c1b58f7f732bf7ee840c3ec
* Catch RuntimeException when opening 3gp files for inspection.Matt Garnes2015-04-011-8/+18
| | | | | | | | | | | When reading metadata from .3gp files, FileManager can crash if the file is unreadable. MediaMetaDataRetriever.setDataSource() throws RuntimeException if this happens. Catch it. Fixes NIGHTLIES-958. Change-Id: I465f7c961793b468e0469a5844894f3ed56b374c (cherry picked from commit 4bd0d070f76d5180e6de1d20843bb9c16a782f4c)
* CMFileManager: change warning drawables used in dialogs for visibilityRaj Yengisetty2015-03-315-5/+9
| | | | Change-Id: I5256322a460f8fab268a6f36022aece2bdabd677
* CMFileManager: account for displayed dialogs during activity tear downRaj Yengisetty2015-03-302-2/+25
| | | | | | | | | | | Repro: - Start copying a large file (>100 MB) - Leave CMFM and trigger a config change (e.g. set text size to small in Settings -> Display) - Return to CMFM - Observe: window leak in logcat Change-Id: Ic875d4f86edf0446b889e6442126bd76a692a7c6
* make sure MountPointInfo and DiskUsageInfo runs in the UI Thread.André Rivotti Casimiro2015-03-301-3/+4
| | | | | | | At some point the original View was dettached and both mMountPointInfo and mDiskUsageInfo handler's were null which means the Ruannable wasn't executed. Change-Id: I883af543b19bc644e451109675c241a8c84e5d64 (cherry picked from commit d7558cf8cdbcc377264c3ff1f05e2c202380c97e)
* Support ambigous file extension mimetypes.Matt Garnes2015-03-266-26/+216
| | | | | | | | | | | | | Previously, CMFileManager operated under the assumption that file extensions map to exactly one mimetype. This is not true in some cases, such as .3gp files, which can have an audio or video mimetype. Add support so that in mime_types.properties we can specify a comma separated list of mimetype info that are matched with a given extension. If an AmbiguousExtensionHelper subclass implementation is provided for one of these extensions, this is used to determine the correct mimetype for the file. Change-Id: Ie73d6ad646692dfeac112ac50c1c6436e6b5559b
* CMFileManager: Removed copyright portion of about_summaryZyg0te2015-03-231-7/+0
| | | | Change-Id: If794766a6b55a3a289bec5c3a96b9c3cea15588c
* CMFileManager: Check if intent action is null when applying user definedZyg0te2015-03-221-2/+3
| | | | | | | | initial directory This prevents the app from crashing when locking secure storage. Change-Id: I9169eabae7ee47ac78479dcfc6f03293d98e1c94
* CMFileManager: set compute folder statistics to true by defaultRaj Yengisetty2015-03-211-1/+1
| | | | | Change-Id: Iaf22257a9227722029956094ae06ccf0df524541 (cherry picked from commit 19862d7c51143136c25d03b741156a0fda68c768)
* CM File Manager - Gracefully handle renaming on case-insensitive filesystemsRohit Yengisetty2015-03-212-2/+19
| | | | | | | | | | | Add edge case handling to move/copy commands wherein something is being renamed to a different-cased version of itself. Ex : renaming 'mydocuments' to 'MyDocuments' https://jira.cyanogenmod.org/browse/BACON-3074 Change-Id: Id90de5fd083e341371f250c0194f200388cf4941
* cmfm: delete obsolete themes resourcesJorge Ruesga2015-03-197-958/+2
| | | | | Change-Id: I3fc24f739b16ab6104a4349f0c8efe0eff790fbd Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* cmfm: fix edit home bookmark iconJorge Ruesga2015-03-191-1/+1
| | | | | Change-Id: I0da0a0b01f49d24edab30a72decd240996b5ccfe Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFileManager: Fix back press events of SearchActivityxiao.hu2015-03-191-12/+5
| | | | | | | | | | epro: - SearchActivity to audio file - Open audio file with small player (e.g. Play Music) - Press back - Observe: audio player closes and CMFM SearchActivity up one directory(NavigationActivity) Change-Id: I4ab1faa1d061eea97050b89e96c1bdf1df66db3f
* CMFileManager: protect code path for access mSdBookmarksRaj Yengisetty2015-03-171-4/+6
| | | | | | | | | | | | | | | | FATAL EXCEPTION: main AndroidRuntime: Process: com.cyanogenmod.filemanager, PID: 2587 AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference AndroidRuntime: at com.cyanogenmod.filemanager.activities.NavigationActivity.applyInitialDir(NavigationActivity.java:1626) AndroidRuntime: at com.cyanogenmod.filemanager.activities.NavigationActivity$15.run(NavigationActivity.java:1521) AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) Change-Id: I2aec4fd6a5b8fcd31cd128f8f46cc9f88bca191e
* CMFileManager: Fix back press eventsRaj Yengisetty2015-03-111-8/+10
| | | | | | | | | | | | Use onBackPressed in stead of onKeyUp for back press events Repro: - Navigate to audio file - Open audio file with small player (e.g. Play Music) - Press back - Observe: audio player closes and CMFM navigates up one directory Change-Id: Ia7440c45241ec957b2405b932525235c92b9211c
* cmfm: add support for init navigation in a concrete folderJorge Ruesga2015-02-273-16/+19
| | | | | | | Add an ACTION_VIEW intent with matches with "resource/folder" mime type and a file/folder/directory scheme Change-Id: I91afe762ebcaf9ead25d091ffaf4f705a8dd0515 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* cmfm: add support for Intent.EXTRA_MIME_TYPESJorge Ruesga2015-02-273-7/+26
| | | | | | | | Since KitKat GET_CONTENT supports Intent.EXTRA_MIME_TYPES to limit the mime types of the returned data. Use this information to add mimetype restrictions (if #getType is not present). Change-Id: Ia968e06d899f695ea555c746d90bb5a3231cc1c9 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CM File Manager - Intent to open video files will have a playlist attachedRohit Yengisetty2015-02-193-1/+75
| | | | | | | In SearchActivity, intent to open video files will have an extra added with the list of all videos in the search results. Change-Id: Ibf48e74fd9f43ee3ac60575bad6c8f9fe1ec70ee
* CM File Manager - Make AsyncResultExecutable's cancel() and end() innocuousRohit Yengisetty2015-02-123-14/+43
| | | | | | | Ensure that cancel() and end() calls don't block the current thread unnecessarily waiting for a notify(). Change-Id: I05843c8e1bdf880243e1fe9a226809aeaf33986b
* CMFileManager: Don't show unmounted volumes in PickerActivityRaj Yengisetty2015-02-051-3/+17
| | | | Change-Id: I628077e6132ffb4aa9f561484630e1f29b1188a5
* CM File Manager : Add Application category to Easy Mode ListRohit Yengisetty2015-02-042-24/+34
| | | | | | | | | * add shortcut to search for application mimetypes (apk, msi, deb etc) * fix layout inflater bug that was causing layout params to be ignored Change-Id: I4bd63fdbdf720a49b536bc811ec10255cc2427db
* New Material iconMichael Bestas2015-02-033-3/+3
| | | | | | * Created by Jovie Brett Bardoles Change-Id: I9c4067f100db25efd4b66d0fb03add94bc06642e
* CM File Manager : Populate results as they are found while searchingRohit Yengisetty2015-01-295-382/+281
| | | | | | | | Eliminate the need to wait for a search to finish before accessing the search results. The search results are streamed concurrently while the search is still in progress. Change-Id: I15f5b87ef4fbbbe9df2ee7a8428d9c812cadf159