aboutsummaryrefslogtreecommitdiff
path: root/src/com/cyanogenmod/filemanager/ui/dialogs/ActionsDialog.java
Commit message (Collapse)AuthorAgeFilesLines
* CMFileManager: Do not create multiple action dialogsyongga2016-10-261-0/+10
| | | | | | | | | | 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. CRs-Fixed: 960229, 970649 Change-Id: I610331cf71cb1b59aef6f89d8fdcb1c6ccda6044
* CMFileManager: Remove shortcut option for secure foldersAnkit Gupta2016-10-261-0/+4
| | | | | Change-Id: I31f568c04dae870d0108e915dd05071461b3196d Issue-Id: FEIJ-1360
* Remove send/send multiple if intent doesn't resolve to any activityScott Mertz2016-06-231-1/+6
| | | | | | | | | | 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
* Fix Rename on VFatherriojr2016-06-201-2/+2
| | | | | | | | | 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)
* Remove set as home menu item for secure storageKeith Mok2016-05-261-0/+4
| | | | | | | | | It just don't support it currently as it requires the UI to ask for password first. FEIJ-825 Change-Id: I7ef4199d99110652b3f13fe9fed8336bf07f59f4
* Remove "Properties" from action menu for secure directoryArtem Shvadskiy2016-05-181-1/+20
| | | | | | | | | Ideally we would allow the properties action to appear and ask the user to unlock the directory first, but that seems to be nigh impossible without refactoring SecureConsole. Change-Id: If619062d3c3db1855ac865811cf6b48e5ae5812f issue-id: FEIJ-692
* Use System Resolverherriojr2015-10-161-5/+5
| | | | | | | | | | | | | | | | | | | | | Converting to using the system resolver. The logic has changed slightly in the following cases: Open -- Tries to start activity, falls back to EditorActivity on failure Open With -- Uses Chooser and populates Editor if not already there Falls back to EditorActivity on failure Click on FSObject -- Same as Open Sending Object -- Same as Open Cleaned up code around this a little since there were unused parameters. Note: The Chooser will only show EXTRA_INITIAL_INTENTS if there are other options as well, which is why we have to do the check up front to see if we need to add it, and falling back to just using the Editor if nothing exists to handle it. Issue-Id: CYNGNOS-1236 Change-Id: I803b86cf6bfec80bbc886025be43ce800afd3be1
* Bookmarks: check to see if a bookmark exists before adding itStephen Bird2015-08-241-1/+1
| | | | | | | | Previously, this would result in multiple bookmarks of the same location Ticket: QRDL-989 Change-Id: I0f19045bc7a6d5fa98c9ef4ee1a8ccda9c501eb1
* CMFileManager: LollipopificationAdnan Begovic2014-12-051-1/+1
| | | | Change-Id: I1702cf147b8ebc68f3a24175fa34cf397d823280
* cmfm: secure storage and other improvementsJorge Ruesga2014-11-101-13/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* CMFileManager : Fix details menu for multiple selectionsDanesh M2014-11-071-1/+15
| | | | | | | If single file is selected, send appropriate info. If multiple files are selected, don't show properties menu Change-Id: I5149cce2f82fae11aa8e3500a274f750f177117a
* cmfm: print supportJorge Ruesga2014-10-011-0/+12
| | | | | Change-Id: Ie10eb390e787d769efd12f669fa6015f6726e0d9 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* [CMFM] bookmarks and history in a navigation drawerFlorian Edelmann2014-03-101-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | * used a modified version of DrawerLayout from the Support Library * moved bookmarks and history there -> always accessible * added a drawer icon * made all themeable * removed the BookmarksActivity and HistoryActivity * removed the BookmarksAdapter and HistoryAdapter as they are useless for LinearLayouts. I couldn't use ListViews because they scroll vertically - as well as the drawer itself. * removed the layouts for bookmarks and history Patch Set 2: tab cleanup and reset code I didn't touch Patch Set 3: fixed a FC after changing the theme when settings were opened by the drawer's overflow menu Patch Set 4: updated commit message Patch Set 5: updated commit message Patch Set 6: disabled "clear history" ActionBar action when history is empty Patch Set 7: fixed code style, fixed theme change issue with history items in the drawer, updated theme previews Patch Set 8: remove trailing whitespaces Change-Id: I215211e771ec7c96a2a669cdcc440556c310d6db
* CMFM: CYAN-285 - Add ability to calculate file checksumsJorge Ruesga2013-03-161-0/+11
| | | | | | | | | | | Added support for compute MD5 and SHA1 file checksums Patchset 2: Remove trailing whitespaces Change-Id: I46cbd0d451eea76e259bdddc485774bbfd34cdc0 JIRA: https://jira.cyanogenmod.org/browse/CYAN-285 Bugfix: CYAN-285 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Support for Intent.ACTION_SEND_MULTIPLEJorge Ruesga2013-01-141-1/+33
| | | | | | | | | | 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>
* CMFM: Fixes and ImprovementsJorge Ruesga2013-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Some performance improvements: - Use stat instead of ls. This allow improve listing of directories with symlinks. Symlinks are resolved by File.getCanonicalFile. - Simplify ls, fileinfo, find and readlink command - Simplify the parsing of FolderUsage (only type, size and category is required), and avoid to load a lot of on unused objects - Add new file datetime information from stat: access, change and modify - Improve list, find and resolvelink java commands * FadeEffect and symlink handling * Remove context from AIDHelper and add new helpful methods * New getAbsolutePath method * Use file separator for paths and ROOT_DIRECTORY for root directory path * Organize startup - Initialize variables prior to register receivers - Load AID data for improve performance through caching - Load the theme base used by AOSP widgets * Allow Editor to show zero-length files Allow the editor to load zero-length files (like /proc/mounts) and change the buffer type to no editable in binary files. * Invert allowed mount points detection. This change inverts the algorithm for prevent unmount needed rw filesystems. Now uses known restricted filesystems instead of known allowed filesystems. Now filesystems like yaffs2, fuse, and other linux filesystems are allowed by default. * Remove unused xliff namespace * Add flagNoFullscreen to EditText widgets * Fix listview selectors of history and bookmarks * Fix race condition When the command was executed prior to block the execution, the thread wait for the timeout. Add a sync access check to ensure that prior to lock and wait the program executed is not finished. * Fix for async programs When the partial buffer received for an async program is not complete (ends with a EOL), the partial buffer was discarded. Add a new buffer with this lost chars to complete this bytes next time * Fix list command Use -n1 for xargs in list command to prevent "argument line too long" * If parent is null then assume that it is the root folder * Use only name and parent for equals method on FileSystemObject A FileSystemObject is the same if his name and path are the same. * Increase performance of adapters Use argument data when possible to avoid call the adapter methods * Do not clear selection on some actions Actions like create new file/folder, show properties and other actions that explicit requires clear the active selection, shouldn't removed the active selection. * Add a new additional line to dialog messages to fill the dialog * Fix spanish translations * Fix theme roulette on tablets * Clean NLS and Override warnings * Fix parse size data with dots * Add listeners after set the values to avoid raising triggers * Increase performance of adapters. Notify the data changed at the end of the changes, and only to super adapters (the internal structure has already been updated) * Ensure that all the Cursor references were closed after used them. * Remove unused SuppressLint * Clean up Change-Id: I4326e97cbc942c767829f1a0ff6b380ad768cfef Signed-off-by: jruesga <jorge@ruesga.com>
* CMFileManager: Themes support + Dark themeJorge Ruesga2012-11-111-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove create copy y rename from search actions dialogjruesga2012-10-281-0/+6
| | | | | Remove create copy y rename when there is not a selection listener (search activity) because we need a list of the current files for give a name suggestion.
* Flinger gesture detection support (issue #8)jruesga2012-10-281-2/+4
| | | | | This allow the use of left to right swipe gesture to delete files or folders. Add a new setting to control this behaviour (active by default)
* Delete confirmation dialog box title is wrong (Issue #18)jruesga2012-10-271-1/+1
| | | | | | | * New dialog title mode (no icons, except were they are needed [welcome and picker]) * Title text without allCaps * New title color * Remove unused drawables
* Remove console selection (Issue #17) - Part II (Settings & Code)jruesga2012-10-271-1/+2
|
* Change application name to 'File Manager' (issue #20)jruesga2012-10-261-0/+690
Full refactoring of package from explorer to filemanager