aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Properly upgrade DB.stable/cm-13.0-ZNH5YDanny Baumann2016-12-031-11/+14
| | | | | | | | | Commit Ie59a4848de118841d2f3c5ec4805f2add0a1d701 introduced a new table, but missed the DB upgrade. RM-290 Change-Id: I1387bfa64deec4ede702c674d1e152d5f65ba971
* FileManager: Editor: Fix race on completion wait/notifyDiogo Ferreira2016-12-031-1/+5
| | | | | | | | | | | | | | | | | | The async reader is racing with the completion handler and when reading a small enough file the notification may happen before the handler ever waits. This patch adds a condition flag under the mSync lock and only ever waits if the completion wasn't done already. This also fixes a potential spurious wakeup issue with the previous code where the wait thread could be woken by a spurious wakeup without the read being completed. RM-290 Change-Id: Ie3e6ead942c0f00dbb3e44591be19634706ee206 Ticket: FEIJAO-1558
* CMFileManager: Save history records when quittingyazhan2016-12-034-13/+341
| | | | | | | | | | | | Upon quitting the app, the history records will be lost as they are not saved. Save the history records so that the user can access them even after quitting the app. RM-290 Change-Id: Ie59a4848de118841d2f3c5ec4805f2add0a1d701 CRs-Fixed: 993150 (cherry picked from commit c21cf96e5e26c372a711b0010ab2585dc4cbeead)
* CMFileManager: Remove top & bottom padding in FS info dialogZhao Wei Liew2016-12-031-2/+0
| | | | | | | | | | | | | | | There are visible borders to the scrollview, so the user expects the content to scroll all the way to the borders. Having the top & bottom padding makes the actual vertical scroll distance shorter than what the user expects it to be. Hence, remove the excessive padding. RM-290 Change-Id: Ibd6609d8d7fefe1cac101e641264779055fe2ba9 (cherry picked from commit 9ba628b7f8aea142e4de6fc5a3f18a165c16e5b5)
* CMFileManager: Modify disk usage graph's layoutjinwu2016-12-032-110/+120
| | | | | | | | | | | Change the view's layout to a ScrollView, so when roating the DUT from landscape to portrait, every single piece of info is shown. RM-290 Change-Id: Iedbef14dad5325056cbb560e98855593b5494c16 CRs-Fixed: 889743 (cherry picked from commit 6a044ae7c4d5898b26b667dcb576f15f6f931d93)
* CMFileManager: Show loading dialog while loading filesFujia Mi2016-12-032-23/+9
| | | | | | | | | | | | | | The loading file task costs much time if the folder contains a lot of files. This causes the illusion of a freeze if the user presses the back key during this time. Show a progress dialog while loading and do not allow the user to press the back key. RM-290 CRs-Fixed: 949902 Change-Id: I527d70a55425d20bc50621533fba775bf5d0ead5
* Revert "CMFM: Fix landscape/rotation issues in file system info dialog"Zhao Wei Liew2016-12-033-321/+268
| | | | | | | | | | | | | | | The original commit is incomplete, and either causes 2 overlapping disk usage graphs to be drawn upon device rotation, or causes the disk usage graph to be improperly sized upon device rotation.. Revert the commit to bring in CAF's fixes for the original issue, which does not exhibit the issue mentioned above. This reverts commit c25f3b995f410883856929972096c8e375cd5377. RM-290 Change-Id: Ie699b17e07d4ea2b04b03181fe13c6d93ef5da62
* Show message to user when toggling word wrap modeemancebo2016-12-032-1/+10
| | | | | | | | | | For very large files, toggling word wrap mode takes a long time on the UI thread. Show a message to the user so they know what is happening. RM-290 Change-Id: Idd3aed525233b944234b6f8864a9d3c02adc00b5 Issue-Id: QRDL-1080
* CMFileManager: Do not create multiple action dialogsyongga2016-12-032-4/+18
| | | | | | | | | | | | Multiple instances of ActionsDialog are created if the user clicks the menu too quickly. Do not create an instance if a dialog has already been displayed. RM-290 CRs-Fixed: 960229, 970649 Change-Id: I610331cf71cb1b59aef6f89d8fdcb1c6ccda6044
* CMFileManager: Refresh the disk usage graph when layout size changeFujia Mi2016-12-031-0/+10
| | | | | | | | | | | | | | The size of disk usage graph was caculated dynamically according to the parent layout size. When the device was rotated from landscape to portrait, the layout size was changed, but the disk usage graph did not refresh. Redraw the graph when the view size changes. RM-290 Change-Id: I2e283ed77f44b759f4f3753ff92fe95d851b6433 CRs-Fixed: 889743
* Fix rename of files ending with . on sdcardemancebo2016-12-031-7/+33
| | | | | | | | | | | | | If sdcard is formatted as VFAT, then file names named as "foo." will be silently saved as "foo". This causes us to report the wrong target file to media scanner, which can cause an extra file to be shown in MTP mode on Windows. The workaround is to rescan the parent dir to discover the correct filename to report to media scanner. RM-290 Change-Id: Ia58a341ef6190efe3dca8b13bbc081b6e2d4e9c1 Issue-Id: QRDL-983
* CMFileManager: remove shortcut option for secure foldersAnkit Gupta2016-12-031-0/+4
| | | | | | | RM-290 Change-Id: I31f568c04dae870d0108e915dd05071461b3196d Issue-id: FEIJ-1360
* CMFM: Recognise .opus file extensionZhao Wei Liew2016-09-161-0/+1
| | | | | | | | | | *.opus files are getting more popular nowadays. Recognise them as part of the audio/opus MIME type. RM-290 Change-Id: Icfcce9ae15a50a74f2268120327ee22921c47eac (cherry picked from commit dd4956d3881a9a329e99d468ca605b7353f8ad00)
* Automatic translation importpinky@build012016-09-063-3/+0
| | | | | Change-Id: I550bddba89933245104e9127ae03d35214e22ca1 Ticket: RM-290
* Automatic translation importblinky@build012016-09-011-1/+1
| | | | | Change-Id: Ieaa96e4837a22a7007e1d225a58be0fe28b3958b Ticket: RM-290
* Automatic translation importpinky@build012016-08-212-0/+403
| | | | | Change-Id: I20cae5f93ea6b3a426635a4878f7ab507d117200 Ticket: RM-290
* Automatic translation importpinky@build012016-08-190-0/+0
| | | | | Change-Id: I82a01ab1aca65484729154ebf3aa1efded8c88c7 Ticket: RM-290
* Automatic translation importpinky@build012016-08-193-120/+523
| | | | | Change-Id: I16d3f92ff972f15e5b015e8a80ef1a87c91e60ba Ticket: RM-290
* Automatic translation importclyde@build012016-08-161-0/+2
| | | | | Change-Id: I0a54e4d3d2dc11366c5e9f309ca01931f08a19ac Ticket: RM-290
* Automatic translation importclyde@build012016-08-151-1/+1
| | | | | Change-Id: I8d9410c25917c450e29656513bea4c43dfb2837e Ticket: RM-290
* Automatic translation importblinky@build012016-08-132-0/+403
| | | | | Change-Id: Ie38ce2e209d713334c6fd287877d8d38c50fb9e7 Ticket: RM-290
* Automatic translation importclyde@build012016-08-080-0/+0
| | | | | Change-Id: Ifac1a09b5add9a35775b3a3747bc154db9ea208b Ticket: RM-290
* Automatic translation importinky@build012016-08-080-0/+0
| | | | | Change-Id: I1f5dbb5b89bbd5c9b86e8079de575ee5441f0957 Ticket: RM-290
* Automatic translation importinky@build012016-08-0716-69/+82
| | | | | Change-Id: I566ac685a3ed88fc57f2a5fde1da76d31ec3fcbb Ticket: RM-290
* Add ape file mimetypeKeith Mok2016-08-051-0/+1
| | | | | | | | HAM-1377 Change-Id: I8d0f4905a147c75ad9f8bc45a2ec7efedd3f00ac (cherry picked from commit 5d690ddcb5fb71542e618545f3ac2127e2cab7ef) (cherry picked from commit 22f5415ef73f0c4810d39781303f513b6051d0a1)
* Automatic translation importinky@build012016-07-261-1/+1
| | | | | Change-Id: Idd833f7c590f01bf8cffd7c3886570ac3bfed0c1 Ticket: -
* Automatic translation importpinky@build012016-07-211-1/+1
| | | | | Change-Id: Ie366dd1525d60a447fbfbe40b3b3cd222a8c136c Ticket: -
* Automatic translation importblinky@build012016-07-191-1/+1
| | | | | Change-Id: I3426c86087450feae50d47ed7bafa5cf4fa8eba5 Ticket: -
* Automatic translation importinky@build012016-07-152-3/+5
| | | | | Change-Id: I662728fcce58a8072d6b758998934cdc4cef2ed9 Ticket: -
* Automatic translation importclyde@build012016-07-112-3/+3
| | | | | Change-Id: Ida2016632f73c3b7bc521ff074676c1b13327658 Ticket: -
* CMFM: Little cleanupMichael W2016-07-011-6/+2
| | | | | | | mimeType can't be null here so just remove those checks and make the code more readable Change-Id: Ic1f6fde2c102912dd8fc7e783d86c2936c43316f
* Automatic translation importinky@build012016-06-291-1/+1
| | | | Change-Id: Ie23d9d06582ef26b0af2b20f9236d88521b1f0ac
* FileManager : Update to use toybox lsDanesh M2016-06-271-1/+1
| | | | | | | | | Toolbox ls does not include inode column, which causes parser to fail and not show directory size in properties dialog. CYNGNOS-3081 Change-Id: I8b0779404795be63de56bc1bc4a7dc46468fcb77
* Fix crash when long press directoryScott Mertz2016-06-271-4/+5
| | | | | | | | | When long pressing a directory, the actions dialog will build an FSO send intent to query if it can be handled by any application. In this case, the list of URIs to share will be 0, causing the crash. FEIJ-1439 Change-Id: I3f500916774af4bde939bd42060d92070971663a
* Fix no icon for 3GP filesKeith Mok2016-06-231-2/+2
| | | | | | | | | | | | | | Commit 6f6094da21960569b93f6171e39e211e8d37f41a does not do what it said. It said " We are now defaulting to treating 3GP files as video files for determining the default icon as it was parsing the video files for their metadata which was causing ANR problems." However it returns no icon for 3GP. Fix it to do what it said in that commit. FEIJ-202 FEIJ-1347 Change-Id: Ieb57583316594c0308792ff8b43aadf1b15d74a5
* Assign application/octet-stream to unknown file extensionsScott Mertz2016-06-231-2/+2
| | | | | FEIJ-1380 Change-Id: I93eea906f35dc5403349409b1c26e6a4fc386d5a
* Remove send/send multiple if intent doesn't resolve to any activityScott Mertz2016-06-232-49/+68
| | | | | | | | | | Instead of falling back to the editor activity as a last resort for "Send", remove the option if there's no potential candidate. The editor activity won't handle the ACTION_SEND/ACTION_SEND_MULTIPLE intent anyway. This stops an error from popping up in the editor if the file cannot be sent from any other activity. FEIJ-1380 Change-Id: I2330299e0cb8b6f3c93d5a190067b8bfe6a3f56f
* Navigate to path when launched from folder shortcutScott Mertz2016-06-221-0/+2
| | | | | | | | The logic was backward here. Instead, prompt the user if no permissions and start navigating if already granted. FEIJ-1389 Change-Id: Idee7024516eed5671bc7a1101fc812680db3447b
* Fix Rename on VFatherriojr2016-06-205-25/+37
| | | | | | | | | Changed how the java console handles detecting if a file rename collides with another file to more represent how the particular filesystem implementation handles it (I'm looking at you vfat). Change-Id: I6ac9ae848ee47fa33f02225c310c92f2a03fb50d (cherry picked from commit bd4178a860ab7da89549036c6a4815239b903b61)
* ListPopupWindow: set height of the listStephen Bird2016-06-201-0/+15
| | | | | | | | | | | | | | We need to make sure that the list is the proper height so that it does not draw off the screen. Ideally, we would stop handling the orientation changes and allow the app to do the orientation changes as android apps do normally. This would require some significant changes to how our dialog system works and could cause other potential issues. Ticket: QRDL-882 Change-Id: I39176d56d8286ed93b71dbe4c770fe79f39ac753 (cherry picked from commit d86bee2ab7b08ea2eaec91b251b0d94548de0af0)
* Search: Hide progress spinner if search failsStephen Bird2016-06-201-0/+2
| | | | | Change-Id: I883bd3587e91cfc6ee73eec45ea9840d781719bb (cherry picked from commit 76e0032448aa0ff667ea2c700cfed26941c413fd)
* Automatic translation importinky@build012016-06-171-1/+1
| | | | Change-Id: I6c7ba075b084892a30676d60b87c147ec1cc78c6
* Fix sort mode popup after rotation from portrait to landscapeScott Mertz2016-06-171-5/+11
| | | | | | | | | ListPopupWindow doesn't appear to correctly recalculate its popup size after rotation. Force the recalculation on rotation and allow the window to fill the entire screen if necessary. FEIJ-1192 Change-Id: I6345a56c4dde3dd73c3d902afd0a840307014178
* Filter out vnd.android.cursor mimetype for PickerKeith Mok2016-06-132-1/+13
| | | | | | | | | | | | We don't support vnd.android.cursor mimetype, the return result is never be expected to caller. Ideally, we should filter that mimetype in AndroidManifest.xml, however we currently accept */* mimetype and there is no way to exclude a specific mimetype. FEIJ-1138 FEIJ-1140 FEIJ-1141 Change-Id: I407159c5f5283e4d5cec2ec129a7643723bc8602
* Invalidate preferences headers when resumingd34d2016-06-091-0/+7
| | | | | | | | | | | | If the use is in a sub settings, i.e. general settings, and changes their language. Upon returning to File Manager and pressing back to go to the main settings menu, the about text will remain in the previous language. This is easily reproduced when the intial language is set to Chinese and then switched to English. The about text will still be in Chinese. Change-Id: I1dff61a6a94e6aabf336d863e102c29044f3a649 (cherry picked from commit b35b682bd4d4a089d55fcf43a0711a9b9ca7c615)
* Check if view is inited when screen rotatedKeith Mok2016-06-081-1/+3
| | | | | | | | | | | | | | In M, we need to request permission the first time application is use it. And we put that before the creation of the content view. If screen rotated before user confirm the permission dialog box, it will cause onConfigurationChanged to be called, and refreshs the view which is not created yet. Add a null pointer checking to avoid that. FEIJ-1083 Change-Id: Ic3c762e62edef28d4c5d7a7a89fabec3f4324eca
* CMFM: Make sure no NPE happensMichael W2016-06-051-0/+4
| | | | | | Fix for the case when getExternalFilesDir returns null Change-Id: I62725cec0f65412f3cc9c66c0e9870d2da62c6b8
* Flush the shell console after each commandIgor Kalkov2016-06-011-0/+2
| | | | | | | | | | | This patch fixes the file manager on android-n-preview-2 (and maybe other roms/systems). Observed behavior: no output is produced at StdIn or StdErr after writing commands to the shell console. This leads to a timeout and a reallocation of the console in an endless loop. Flushing the output stream fixes the problem. Not sure if there was a good reason for not doing it in general. Change-Id: Ia87aa5065f6c62f133de4bbde4b4a32a4388d784
* Automatic translation importinky@build012016-06-012-0/+18
| | | | Change-Id: I2e50638e758fca25e32fad9d3e9c586bdfe8e25b
* Fix crash when rotate to landscape without grant permissionKeith Mok2016-05-271-1/+4
| | | | | | | | | NavigationView is null before permission is granted. Guard with a null checking before refreshing FEIJ-820 Change-Id: Ib778ec82ce49dbcad8e45a5d54a5501cd3030410