aboutsummaryrefslogtreecommitdiff
path: root/src/com/cyanogenmod/filemanager/ui/dialogs/AssociationsDialog.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "cmfm: Use FileProvider for serving files"Arne Coucheron2016-12-221-1/+1
| | | | | | | | | | Incomplete so things are still very much broken. We'll force SDK to version 23 instead for now, so at least we have a fully working file manager. This reverts commit 578f0a0ed7870b5a8ed28c7c0198a798b389a682. Change-Id: I612507d75d3e45ba091d43ac2c5bf1f9dbe53fb5
* cmfm: Use FileProvider for serving filesSteve Kondik2016-09-061-1/+1
| | | | | | | | | | | | * On N, apps can no longer share file:// uris to other packages. Apps that wish to do this must use a FileProvider to generate content uris which can then be shared. * This patch only currently handles the external storage case and does not consider arbitrary filesystem paths or root access. This could be implemented in the future, if necessary. The common case of opening a media file is a good start, though. Change-Id: I83aef923dfa26173171a13c0881aeb43337b4e47
* CMFileManager : Switch to checked statesDanesh M2015-09-111-27/+6
| | | | | | | | | | | | | | | | Selected states are not being tracked properly when rotated. Repro: 1. Click to open file 2. Tap on first item in resolver dialog 3. Rotate device 4. Press ok 5. Enjoy crash issue-id: CYNGNOS-991 Change-Id: I9ef5d0571201957eac40edc8bc5e47700752dcc3
* cmfm: secure storage and other improvementsJorge Ruesga2014-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for virtual filesystems and implements a SecureStorage filesystem (a password protected area) mounted in /storage or /sdcard/storage (in chrooted environments). Also includes a better print support and a cleanup of the code and design of the menu drawer. Bump version to 2.0.0 Required: https://github.com/jruesga/android_external_libtruezip located in external/libtruezip Patchset 4: Fix selection of unmounted virtual storages. Fix actions on virtual mount points folders. Fix strings and typos. Change drop for delete secure storage. Patchset 5: Move actionbar buttons to navigation drawer Remove history position Patchset 6: Update theme preview images Fix filesystem status image on theme change Patchset 7: Fix binary file detection in editor (including unicode files) Patchset 8: Fix unsafe operations in virtual mountpoint logic Patchset 9: Rebase Change-Id: I65511352ca649dcbf238c8b07cf8c22465296e8e Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Fix AssociationsDialog selection when have scrollingJorge Ruesga2013-05-261-1/+2
| | | | | | | Change-Id: I7f51e7a3225341e209e1b9b9c1f156ae9e9d55ef JIRA: CYAN-1224 Issue: https://jira.cyanogenmod.org/browse/CYAN-1224 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Protect AssociationsDialog from NPEJunwen Sun2013-04-071-12/+10
| | | | | | | | | Patchset 2: Fixed author name Change-Id: Ice751c89f89f960ef87f89be446a33370ec9d4b8 JIRA: CYAN-786 Issue: https://jira.cyanogenmod.org/browse/CYAN-786 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Double click to open associated intentSun Junwen2013-04-051-14/+21
| | | | | | | | | When an item is selected, then open the item if the user tap again over the item Change-Id: Ifd34d39b9b1393dc3bb8d83f1fc25efc8a34683b JIRA: https://jira.cyanogenmod.org/browse/CYAN-770 Bugfix: CYAN-770 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Support for Intent.ACTION_SEND_MULTIPLEJorge Ruesga2013-01-141-1/+6
| | | | | | | | | | This changes allows to send multiple files through selecting multiple files. Add new "Send selection" global menu, that is shown when user has some selected files, and all of them are files (send multiple is not allowed for folders) Change-Id: I1a889c1188803a6639433d4613fec2246d90fc9b Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Issue 6606: CM File Manager will not Remember Selection for "Open With" menuJorge Ruesga2012-12-111-109/+105
| | | | | | | | | | | | | | | | | | | | Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6606 This patch makes the next changes: * Make the internal editor exportable. Now it can be treated as another activity and can be mark as preferred activity, but only for text/* and some text mime/types. For undefined mime/types categories, the internal editor is still used in a non preferred mode (internal editor cannot be marked as preferred) * When the internal editor in a non preferred mode is selected, 'remember' checkbox is hidden. * Improve preferred activity resolution * Allow clear a preferred activity on the open with dialog (when 'remember' checkbox is unchecked) * For better compatibility, the internal editor now ignores the ACTION_EDIT action, so opened files are always editables (with the exception of binary files that they are opened always as read-only) * Improved onIntentSelected with better NPE and internal editor checks Change-Id: Ie42990a6c0ccbdd4bfab6ec23ae27cc808cac7b7
* CMFileManager: Themes support + Dark themeJorge Ruesga2012-11-111-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enabled the theme support, and added a new dark theme under the package CMFileManagerThemes. To compile under build system, it must be enabled in vendor/cm/config/common.mk or vendor/cm/config/themes_common.mk (this was requested in change http://review.cyanogenmod.org/#/c/26311/) Themes were enabled in a new settings option. Under this setting the application show the user the available themes installed in the system. -------------------- For build new themes, developers should: - Create a new package that contains an activity with: * Permission: com.cyanogenmod.filemanager.permissions.READ_THEME * Action: com.cyanogenmod.filemanager.actions.MAIN_THEME * Category: com.cyanogenmod.filemanager.categories.THEME - Define the themes_ids, themes_names and themes_descriptions arrays-strings definitions for the themes that the package support. - Create a xxx_theme.xml for every theme that the package support, where the xxx is the id of the theme. Put your resources in this file, prefixing the resource with the id of the theme (xxx_). For a list of all supported resources see theme.xml in res/values of CMFileManager project. ------------------- Other fixes: * Protect console buffers from NPE * Fix code style of xmls (layouts, drawables, ...) Patchset 2: Fixed code style and added Christian suggestion Patchset 3: Added forgotten READ_THEME permission check as described in the note above. Patchset 4: Use centerInside in theme preview for better image fit Change-Id: I4142da6d9ed1b06318e47ff9c05f9a874c62f3ae
* CMFileManager: Fix crash when select CMFileManager internal editor to open ↵YuanQY2012-11-071-2/+2
| | | | | | | | | | | | | | | | | text file. When open a text file, in the choose application to open and select the CMFileManager internal editor to open, the CMFileManager will crash. Because the ri.filter is null. Patch Set 2: Implement the logical as Jorge Ruesga suggestion. Check it's interneal editor before to process system association. Patch Set 3: Add the ri.filter valid check before to process system association. Change-Id: I2d9698d9cb862de2b1141e84bc2f540e4ced92e6
* Change application name to 'File Manager' (issue #20)jruesga2012-10-261-0/+475
Full refactoring of package from explorer to filemanager