OSDN Git Service

android-x86/packages-apps-CMFileManager.git
11 years agoAllow picking of directories.
Danny Baumann [Mon, 21 Jan 2013 10:42:33 +0000 (11:42 +0100)]
Allow picking of directories.

This is used e.g. by k-9 to select an attachment storage path.

There are a number of intent filter conventions for picking directories.
In k-9's code I found the following:

- action org.openintents.action.PICK_DIRECTORY, scheme file
- action com.estrongs.action.PICK_DIRECTORY, scheme file
- action Intent.ACTION_PICK, scheme folder
- action com.androidworkz.action.PICK_DIRECTORY, scheme file

Implemented is the third variant, as it's the most generic way to
describe the intention.

Change-Id: I8752fe0db923a9ca169cc09eeee6a13bb5236626

11 years agoMerge "Don't prompt for superuser access when picking a file." into cm-10.1
Danny Baumann [Wed, 23 Jan 2013 08:49:09 +0000 (00:49 -0800)]
Merge "Don't prompt for superuser access when picking a file." into cm-10.1

11 years agoCMFM: Remove aapt warning
Jorge Ruesga [Tue, 22 Jan 2013 22:33:57 +0000 (23:33 +0100)]
CMFM: Remove aapt warning

Change-Id: I5df8854d1d92cc3c0ab2ca76421e15e14fa3e59a
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
11 years agoMerge "CMFM: Slovak translations" into cm-10.1
Marco Brohet [Tue, 22 Jan 2013 19:43:37 +0000 (11:43 -0800)]
Merge "CMFM: Slovak translations" into cm-10.1

11 years agoDon't prompt for superuser access when picking a file.
Danny Baumann [Tue, 22 Jan 2013 09:57:05 +0000 (10:57 +0100)]
Don't prompt for superuser access when picking a file.

The file picker is chrooted anyway, so it's confusing to the user to see
a superuser prompt in that case.

Change-Id: Ied492fc2270a343e17057efd252606f230d02180

11 years agoPT-BR: Update translations
Gustavo [Sat, 19 Jan 2013 05:04:57 +0000 (21:04 -0800)]
PT-BR: Update translations

Change-Id: Ieceac29295b6866ecd503d3a4352c0ff7f17a0ed

11 years agoAdded missing hungarian translation
Tamás Tóth [Fri, 18 Jan 2013 13:16:03 +0000 (14:16 +0100)]
Added missing hungarian translation

Change-Id: I997943461256df24e37351532cba13d61e8fa5bf

11 years agoCMFM: Slovak translations
pytlicek-sk [Tue, 6 Nov 2012 18:33:52 +0000 (19:33 +0100)]
CMFM: Slovak translations

Change-Id: I3dd6dcb7353bb2b869d7626b93ad1f6d351dad8b

11 years agoPT-BR: Added missing translations
Gustavo [Wed, 9 Jan 2013 12:11:34 +0000 (04:11 -0800)]
PT-BR: Added missing translations

Change-Id: Iab9848c301f1e58cb6655afb820e9a3640c5c5c3

11 years agoMerge "CMFM: Dutch translations" into cm-10.1
Jorge Ruesga [Tue, 15 Jan 2013 22:04:53 +0000 (14:04 -0800)]
Merge "CMFM: Dutch translations" into cm-10.1

11 years agoCMFM: Dutch translations
Marco Brohet [Sun, 13 Jan 2013 15:53:44 +0000 (16:53 +0100)]
CMFM: Dutch translations

Implements:
    -  http://review.cyanogenmod.org/30265
    -  http://review.cyanogenmod.org/30259 (local)
    -  http://review.cyanogenmod.org/29840
    -  http://review.cyanogenmod.org/29563

Changes:
    -  Shorten translations
    -  Retain English order of strings

----------------------------------------------------

Patch set 1: Initial commit
Patch set 2: More translations
             Add commas
Patch set 3: Improving translation (inline comment)

----------------------------------------------------

Change-Id: I9a8a9631451a4554a2d0f9575cbfa450d00372d5

11 years agoMerge "CMFileManager : add French translation" into cm-10.1
Jorge Ruesga [Tue, 15 Jan 2013 21:05:01 +0000 (13:05 -0800)]
Merge "CMFileManager : add French translation" into cm-10.1

11 years agoMerge "Update Russian Translation-CMFileManager-CM10.1" into cm-10.1
Jorge Ruesga [Tue, 15 Jan 2013 21:02:37 +0000 (13:02 -0800)]
Merge "Update Russian Translation-CMFileManager-CM10.1" into cm-10.1

11 years agoMerge "Added hungarian translation for .nomedia settings" into cm-10.1
Jorge Ruesga [Tue, 15 Jan 2013 21:00:20 +0000 (13:00 -0800)]
Merge "Added hungarian translation for .nomedia settings" into cm-10.1

11 years agoMerge "CMFileManager: Hebrew translation" into cm-10.1
Marco Brohet [Tue, 15 Jan 2013 14:48:37 +0000 (06:48 -0800)]
Merge "CMFileManager: Hebrew translation" into cm-10.1

11 years agoCMFM: Support for Intent.ACTION_SEND_MULTIPLE
Jorge Ruesga [Sun, 13 Jan 2013 23:21:22 +0000 (00:21 +0100)]
CMFM: Support for Intent.ACTION_SEND_MULTIPLE

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>
11 years agoMerge "CMFM: Fix select/unselect from menu dialog" into cm-10.1
Jorge Ruesga [Mon, 14 Jan 2013 20:00:04 +0000 (12:00 -0800)]
Merge "CMFM: Fix select/unselect from menu dialog" into cm-10.1

11 years agoMerge "CMFM: Fix change to root when initial directory not exists" into cm-10.1
Jorge Ruesga [Mon, 14 Jan 2013 19:59:45 +0000 (11:59 -0800)]
Merge "CMFM: Fix change to root when initial directory not exists" into cm-10.1

11 years agoMerge "CMFM: Wait indefinitely on privileged console allocation" into cm-10.1
Jorge Ruesga [Mon, 14 Jan 2013 19:59:26 +0000 (11:59 -0800)]
Merge "CMFM: Wait indefinitely on privileged console allocation" into cm-10.1

11 years agoMerge "CMFileManager: Update German translation" into cm-10.1
Danny Baumann [Mon, 14 Jan 2013 15:49:55 +0000 (07:49 -0800)]
Merge "CMFileManager: Update German translation" into cm-10.1

11 years agoAdded hungarian translation for .nomedia settings
Tamás Tóth [Sun, 13 Jan 2013 15:14:48 +0000 (16:14 +0100)]
Added hungarian translation for .nomedia settings

Change-Id: I14ce6a9ab7a07c41f3e4f3a012318fb2c452c644

11 years agoCMFM: Change mode from 755 to 644
Jorge Ruesga [Sun, 13 Jan 2013 21:59:07 +0000 (22:59 +0100)]
CMFM: Change mode from 755 to 644

Also, convert linefeed of res/values-ro/strings.xml from windows to unix

Change-Id: I15e3b6727996a42799214682478a49a84142cb07
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
11 years agoCMFM: Fix select/unselect from menu dialog
Jorge Ruesga [Sun, 13 Jan 2013 21:32:20 +0000 (22:32 +0100)]
CMFM: Fix select/unselect from menu dialog

Also, remove unused public toggleSelection method

Change-Id: I455057234056f3b0d94447fac6bc9b29152b14b6
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
11 years agoCMFileManager: Update German translation
jackmu95 [Fri, 11 Jan 2013 00:05:39 +0000 (01:05 +0100)]
CMFileManager: Update German translation

Patch Set 1: * rename strings
* unify translations
* some cleanup

Patch Set 2: * rename Dateimanager to Datei Manager

Patch Set 3: * make it reviewable
  layout will be fixed if it's ready to merge

Patch Set 4-7: * revert some changes
* rename/shorten some strings
* add missing translations
  http://review.cyanogenmod.org/#/c/29840/

Patch Set 8: * final cleanup
* fix formatting

Change-Id: I7cfd366e21c80bbaef2454c79c5c998e8a7b12c4

11 years agoCMFileManager: Hebrew translation
Or Harambam [Sun, 13 Jan 2013 15:42:25 +0000 (17:42 +0200)]
CMFileManager: Hebrew translation

Change-Id: Ie1bb22494b2b638242209c9de1bd7b125e9253d0

11 years agoCMFM: Fix change to root when initial directory not exists
Jorge Ruesga [Sun, 13 Jan 2013 20:23:58 +0000 (21:23 +0100)]
CMFM: Fix change to root when initial directory not exists

Fix also R.string.msgs_settings_invalid_initial_directory string for default string.xml file

Change-Id: I35ddf7f1ca2b250638ea96bfee894de9f07ed5b9
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
11 years agoCMFM: Wait indefinitely on privileged console allocation
Jorge Ruesga [Sun, 13 Jan 2013 20:14:12 +0000 (21:14 +0100)]
CMFM: Wait indefinitely on privileged console allocation

Wait indefinitely if a privileged console is being allocated. Wait for
the user response to SuperUser or SuperSu prompt (or whatever it is).

Change ShellConsole.this access to a private variable in methods of ShellConsole

Change-Id: I6752fe8bcd0de3aa6478ad97fb84c9ac8697a970
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
11 years agoUpdate Russian Translation-CMFileManager-CM10.1
pvolkov [Sat, 12 Jan 2013 17:44:34 +0000 (21:44 +0400)]
Update Russian Translation-CMFileManager-CM10.1

Update Russian Translation-CMFileManager

11 years agoMerge "CMFM: Properly handle async task exception" into cm-10.1
Jorge Ruesga [Sun, 13 Jan 2013 12:03:30 +0000 (04:03 -0800)]
Merge "CMFM: Properly handle async task exception" into cm-10.1

11 years agoCMFM: Properly handle async task exception
Jorge Ruesga [Sun, 13 Jan 2013 11:58:36 +0000 (12:58 +0100)]
CMFM: Properly handle async task exception

Use onPostExecute method for drawing in the UI thread

Change-Id: I2a3731f5888789e8e151f63f562c7beee244a350
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
11 years agoCMFM: Fix relaunchables exceptions
Jorge Ruesga [Sun, 13 Jan 2013 11:47:16 +0000 (12:47 +0100)]
CMFM: Fix relaunchables exceptions

Change-Id: I5bccabb0d58c48ef883e8c730bc3ba36b657b0c6
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
11 years agoCMFileManager : add French translation
DelPETER [Sat, 12 Jan 2013 14:41:18 +0000 (15:41 +0100)]
CMFileManager : add French translation

Patch set 2 : correction

Change-Id: I0aaf39ba54f081095c9c60c0d5a41af4e0950f77

11 years agoes_ES: Added spanish translations
djMesias [Sat, 12 Jan 2013 08:57:03 +0000 (09:57 +0100)]
es_ES: Added spanish translations

Change-Id: I3a1646d00ba86d73e0b39c063f0135ea24f079a5

11 years agoAdd ability to toggle .nomedia file in storage locations
Nathan Grebowiec [Mon, 7 Jan 2013 21:23:30 +0000 (15:23 -0600)]
Add ability to toggle .nomedia file in storage locations

Patchset 1) Initial commit
Patchset 2) Fixed tabs and whitespace
Patchset 3) Moved everything to the properties dialog
Patchset 4) Clean up
Patchset 5) Added check for .nomedia dir
Patchset 6) Tab cleanup
Patchset 7)
    Rebase
    Regorganize FsoPropertiesDialog
    Refresh navigation listview if a .nomedia file was created or deleted
    Use FileHelper.deleteFolder instead of DeleteDirCommand
    Mark/Unmark checkbox when user response no or an error occurs (let checkbox as his initial status)
    Internationalize error messages
    Fix nomedia layout id
    Use match_layout instead of fill_parent (deprecated)
    Ensure that the fso is a canonical path
    Use File.exists() to detect the present of .nomedia
    Theme nomedia label
    Format code and clean Up
    Remove W.I.P
Patchset 8)
    Align .nomedia layout
    Split toggleNoMediaFile logic
    Ask user if .nomedia file is not empty
    Fix typos
Patchset 9) Fix typo

Change-Id: I048d1da75f24230380aa7503f2d2c9ad95f9b873

11 years agoMerge "Added missing hungarian translation" into cm-10.1
Marco Brohet [Thu, 10 Jan 2013 15:37:12 +0000 (07:37 -0800)]
Merge "Added missing hungarian translation" into cm-10.1

11 years agoMerge "CMFileManager: fixed typo in romanian translation" into cm-10.1
Marco Brohet [Thu, 10 Jan 2013 15:34:35 +0000 (07:34 -0800)]
Merge "CMFileManager: fixed typo in romanian translation" into cm-10.1

11 years agoAdded missing hungarian translation
Tamás Tóth [Thu, 10 Jan 2013 12:24:47 +0000 (13:24 +0100)]
Added missing hungarian translation

Change-Id: I5afacd2975c5396122c3cd8b763f20a61f42b36f

11 years agoCMFM: Fix typo
Jorge Ruesga [Wed, 9 Jan 2013 22:50:37 +0000 (23:50 +0100)]
CMFM: Fix typo

Change-Id: Ib42a83bde4611ba4bdd661a45b1dda6d25c58cdb
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoMerge "CMFM: Do not use cd and pwd commands" into cm-10.1
Jorge Ruesga [Wed, 9 Jan 2013 22:06:23 +0000 (14:06 -0800)]
Merge "CMFM: Do not use cd and pwd commands" into cm-10.1

11 years agoCMFileManager: fixed typo in romanian translation
igoriok [Wed, 9 Jan 2013 20:13:35 +0000 (22:13 +0200)]
CMFileManager: fixed typo in romanian translation

Change-Id: I031a4306a6f07a84c0772414564d8f05e74e1f4e
Signed-off-by: igoriok <igor_sorocean@hotmail.com>
11 years agoCMFileManager: Dutch translations
Marco Brohet [Mon, 7 Jan 2013 11:32:56 +0000 (12:32 +0100)]
CMFileManager: Dutch translations

Change-Id: I2ac748fd2678d7634741c0209b8887c1f73ca0b9

11 years agoCMFM: Do not use cd and pwd commands
Jorge Ruesga [Tue, 8 Jan 2013 23:56:18 +0000 (00:56 +0100)]
CMFM: Do not use cd and pwd commands

Remove cd and pwd commands and use / as working directory for shell process (this commands
are not used). This prevents that storage volumes from get busy on unmount file systems.
Signed-off-by: jruesga <jorge@ruesga.com>
Change-Id: I772866c00233351f505b61f53d43bac5de02a5e4

11 years agoMerge "CMFM: Ignore stderr from stat list command" into cm-10.1
Jorge Ruesga [Tue, 8 Jan 2013 23:14:39 +0000 (15:14 -0800)]
Merge "CMFM: Ignore stderr from stat list command" into cm-10.1

11 years agoCMFM: Ignore stderr from stat list command
Jorge Ruesga [Tue, 8 Jan 2013 22:19:21 +0000 (23:19 +0100)]
CMFM: Ignore stderr from stat list command

We don't need "No such file or directory" from path/.* or path/* because
is previously checked by ls, and it is only returned when no matches were found,
which indeed it is not an error.
Signed-off-by: jruesga <jorge@ruesga.com>
Change-Id: I4fa0ef947a30e42a4cccd0c95855c4953a34e874

11 years agoCMFM: Fix race condition
Jorge Ruesga [Tue, 8 Jan 2013 21:52:25 +0000 (22:52 +0100)]
CMFM: Fix race condition

Change-Id: I3ed0d38665b12aa39313c55f7daaa63bd80875a0
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoCMFM: Read hidden files with new stat listing method
Jorge Ruesga [Mon, 7 Jan 2013 22:41:36 +0000 (23:41 +0100)]
CMFM: Read hidden files with new stat listing method

Change-Id: I421586d8deb4e59b6b2abb80ed7c846479f3bd2d
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoMerge "CMFM: Fix FC caused by accessing ui outside of UI thread" into cm-10.1
Jorge Ruesga [Mon, 7 Jan 2013 21:55:29 +0000 (13:55 -0800)]
Merge "CMFM: Fix FC caused by accessing ui outside of UI thread" into cm-10.1

11 years agoCMFM: Fix FC caused by accessing ui outside of UI thread
Jorge Ruesga [Mon, 7 Jan 2013 21:45:27 +0000 (22:45 +0100)]
CMFM: Fix FC caused by accessing ui outside of UI thread

Patchset 2: Formatting

Change-Id: I1323b4f92a64dd23afe4aa28d3569ce01d72c039
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoCMFM: Fix AsyncResultProgram deadlock
Jorge Ruesga [Mon, 7 Jan 2013 21:41:26 +0000 (22:41 +0100)]
CMFM: Fix AsyncResultProgram deadlock

Change-Id: Idd32ef7902eaf86e573728f7e442c281a47249fc
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoCMFM: es_ES - update missing translations
Jorge Ruesga [Mon, 7 Jan 2013 12:35:52 +0000 (13:35 +0100)]
CMFM: es_ES - update missing translations

Change-Id: I47c6f5c9d9958b294068092539b7257e43178ce7
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoMerge "CMFM: Fix sync object" into cm-10.1
Jorge Ruesga [Mon, 7 Jan 2013 11:27:19 +0000 (03:27 -0800)]
Merge "CMFM: Fix sync object" into cm-10.1

11 years agoMerge "CMFM: Fix NPE when parent dir is null" into cm-10.1
Jorge Ruesga [Mon, 7 Jan 2013 11:26:59 +0000 (03:26 -0800)]
Merge "CMFM: Fix NPE when parent dir is null" into cm-10.1

11 years agoMerge "CMFM: Fix navigation view fade effect" into cm-10.1
Jorge Ruesga [Mon, 7 Jan 2013 11:26:40 +0000 (03:26 -0800)]
Merge "CMFM: Fix navigation view fade effect" into cm-10.1

11 years agoCMFM: Display new fso datetimes props
Jorge Ruesga [Sun, 6 Jan 2013 18:52:53 +0000 (19:52 +0100)]
CMFM: Display new fso datetimes props

Add to FsoPropertiesDialog the new fso datetimes properties:
- Last accessed
- Last modified
- Last changed

Remove old fso_properties_dialog_date string from translations.

Change-Id: I881658ae0fbc6c935995ffb4ad7a02172d06bb2c
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoMerge "CMFM: Use filesystem type instead of auto on remount" into cm-10.1
Jorge Ruesga [Mon, 7 Jan 2013 10:43:05 +0000 (02:43 -0800)]
Merge "CMFM: Use filesystem type instead of auto on remount" into cm-10.1

11 years agoCMFM: Fix sync object
Jorge Ruesga [Sun, 6 Jan 2013 23:22:18 +0000 (00:22 +0100)]
CMFM: Fix sync object

Change-Id: I32db52a17fa1c0a3f31010e16b5cf2a697be7f6d
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoCMFM: Fix NPE when parent dir is null
Jorge Ruesga [Sun, 6 Jan 2013 22:57:10 +0000 (23:57 +0100)]
CMFM: Fix NPE when parent dir is null

Change-Id: Ic31130412d332a486df7e0e891f6097e2d1f9276
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoCMFM: Use filesystem type instead of auto on remount
Jorge Ruesga [Sun, 6 Jan 2013 20:21:06 +0000 (21:21 +0100)]
CMFM: Use filesystem type instead of auto on remount

Use the filesystem type obtained from /proc/mounts to remount the filesystem
instead of use the auto type

Change-Id: I791e099a51fec1f9f75ce94a3e879b8a6f594e4e
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoCMFM: Fix navigation view fade effect
Jorge Ruesga [Sun, 6 Jan 2013 19:57:15 +0000 (20:57 +0100)]
CMFM: Fix navigation view fade effect

Use OnRelaunchCommandResult listener to finish the fade effect instead of doing in
the async task, to ensure that cancels and failures results will finalize the fade effect.

Change-Id: I872a4f468670dc425d96c9c7dfd5fe05b8d86b89
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoMerge "CMFileManager: Dutch translations" into cm-10.1
Marco Brohet [Sun, 6 Jan 2013 19:29:38 +0000 (11:29 -0800)]
Merge "CMFileManager: Dutch translations" into cm-10.1

11 years agoCMFileManager: Dutch translations
Marco Brohet [Sun, 6 Jan 2013 11:58:23 +0000 (12:58 +0100)]
CMFileManager: Dutch translations

Change-Id: If75a666185b0b5cae56632b552a818da5c70bb9c

11 years agoMerge "CMFM: Fix name and parent for root directory" into cm-10.1
Jorge Ruesga [Sun, 6 Jan 2013 15:13:29 +0000 (07:13 -0800)]
Merge "CMFM: Fix name and parent for root directory" into cm-10.1

11 years agoCMFM: Fix name and parent for root directory
Jorge Ruesga [Sun, 6 Jan 2013 13:09:42 +0000 (14:09 +0100)]
CMFM: Fix name and parent for root directory

Change-Id: I56aed1dff9fda651e30d0eb29e488d3736e42900
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoCMFM: Fix filesystem and fso dialog layouts
Jorge Ruesga [Sun, 6 Jan 2013 13:06:39 +0000 (14:06 +0100)]
CMFM: Fix filesystem and fso dialog layouts

Change-Id: Ie48a897a1fdae74f34fb7f4ea004b95821ab177e
Signed-off-by: jruesga <jorge@ruesga.com>
11 years agoCMFM: Fixes and Improvements
Jorge Ruesga [Sat, 5 Jan 2013 17:07:56 +0000 (18:07 +0100)]
CMFM: Fixes and Improvements

* 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>
11 years agoMerge "Update Russian Translation-CMFileManager-CM10.1" into cm-10.1
Jorge Ruesga [Sat, 5 Jan 2013 15:23:29 +0000 (07:23 -0800)]
Merge "Update Russian Translation-CMFileManager-CM10.1" into cm-10.1

11 years agoAdd mime type for exported settings of K9.
Danny Baumann [Thu, 3 Jan 2013 15:50:31 +0000 (16:50 +0100)]
Add mime type for exported settings of K9.

There should be quite a number of our users who have those files.

Change-Id: I6e7a7c7893349bbf8bb095ae46467f35b2bfc09d

11 years agoMerge "Fall back to showing all files for unknown mime types." into cm-10.1
Jorge Ruesga [Fri, 4 Jan 2013 23:06:57 +0000 (15:06 -0800)]
Merge "Fall back to showing all files for unknown mime types." into cm-10.1

11 years agoFall back to showing all files for unknown mime types.
Danny Baumann [Thu, 3 Jan 2013 15:48:13 +0000 (16:48 +0100)]
Fall back to showing all files for unknown mime types.

It's better to let the user select among all files than not presenting
him any files at all.

Patchset 2: simplify the logic
Patchset 3: Revert to patchset 1. Verify mime type regexp name instead of mime type name.

Change-Id: I372f00cccce1c9bb69d5d2668bb33c7882580e08

11 years agoUpdate Russian Translation-CMFileManager-CM10.1
pvolkov [Fri, 4 Jan 2013 18:35:39 +0000 (22:35 +0400)]
Update Russian Translation-CMFileManager-CM10.1

11 years agoCMFileManager: Updated menu strings to reduce confusion regarding copy & move
Roman Barczyński [Wed, 2 Jan 2013 20:38:58 +0000 (21:38 +0100)]
CMFileManager: Updated menu strings to reduce confusion regarding copy & move

Changed menu strings should help users understand that files will be moved
to current folder.

msgs_operation_not_allowed_in_current_directory change should make clear
that it is "move a to a" issue rather than missing root access or insufficient
privileges.

Change-Id: I007bbec91c89f5e0eb4caefc721cfb6facdd0a0f

11 years agoPT-BR: Fixes to translation
Gustavo [Sun, 30 Dec 2012 20:59:07 +0000 (12:59 -0800)]
PT-BR: Fixes to translation

Change-Id: I02052951410184c53cbf8615552ab5037a942ff0

11 years agoCMFileManager: Dutch translations
Marco Brohet [Fri, 28 Dec 2012 10:03:35 +0000 (11:03 +0100)]
CMFileManager: Dutch translations

Change-Id: Ifad1b5eb6247df1d8a1850725e6d357a058f60be

11 years agoCMFileManager: Add RealVideo and Matroska mime-types
Jorge Ruesga [Sun, 23 Dec 2012 10:15:45 +0000 (11:15 +0100)]
CMFileManager: Add RealVideo and Matroska mime-types

Change-Id: I4886cd713f18b2f9c961237cc9ec84e53bc35f6b

11 years agoMerge "Fix german translation for disk usage warning level." into cm-10.1
Jorge Ruesga [Sat, 22 Dec 2012 15:08:20 +0000 (07:08 -0800)]
Merge "Fix german translation for disk usage warning level." into cm-10.1

11 years agoFix german translation for disk usage warning level.
Danny Baumann [Sat, 22 Dec 2012 12:17:48 +0000 (13:17 +0100)]
Fix german translation for disk usage warning level.

Change-Id: Ide793be814c8bf214f45d7f423220f765fd69ec0

11 years agoCMFileManager: Make groups command optional
Jorge Ruesga [Sun, 16 Dec 2012 01:31:38 +0000 (02:31 +0100)]
CMFileManager: Make groups command optional

Groups command command is causing problems on some implementations (maybe toolbox?)
which don't recognize the root AID and returns an error, and avoid to get root access.

Patchset 2: Fix typo

Change-Id: Idc17b18c34b8be263a1739dbad2921f60101fa09

11 years agoCMFileManager: Change manifests to API 17
Jorge Ruesga [Tue, 11 Dec 2012 23:11:51 +0000 (00:11 +0100)]
CMFileManager: Change manifests to API 17

Change project manifests to match AOSP 4.2 (API 17)

Change-Id: I2f66a185d8a78612ad7e542ed10c52e49c9eaeef

11 years agoIssue 6795: File Manager selected file actions vanish on navigation to parent directory
Jorge Ruesga [Wed, 5 Dec 2012 22:15:39 +0000 (23:15 +0100)]
Issue 6795: File Manager selected file actions vanish on navigation to parent directory

Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6795

The issue is relate to back navigation (nor to ahead navigation). In this case the history
parcelable info data is recovery (which has a invalid selection data).
On back navigation, replace the selection data parcelable info with the current selection
of the navigation view.
Added notifyDataSetChanged() when toogle visibility, needed to refresh the view and repaint
the items.

Change-Id: Ib281c6fbc33274f6e81cc6b588cde420d6ceb19f

11 years agoupdated italian translation
Giulio Cervera [Mon, 3 Dec 2012 10:56:29 +0000 (11:56 +0100)]
updated italian translation

Change-Id: Ia788ea90c7841803b587a0892c17da2fa6c4ef18

11 years agoIssue 6769: The bottom bar of pop-up boxes in CM File Manager should be “Done” or...
Jorge Ruesga [Mon, 3 Dec 2012 22:13:52 +0000 (23:13 +0100)]
Issue 6769: The bottom bar of pop-up boxes in CM File Manager should be “Done” or “OK” rather than “Cancel”

Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6769

Changed "Cancel" to "Ok" in FsoPropertiesDialog and FilesystemInfoDialog.

Change-Id: Id92ea897afae69e059da661a13350bc7020509c4

11 years agoCMFileManager: pt-pt translations
João Ventura [Sun, 25 Nov 2012 15:59:07 +0000 (15:59 +0000)]
CMFileManager: pt-pt translations

Patchset 1: initial translations
Patchset 2: dark theme translation

Change-Id: I3e2873f4574207eddfe5666180521d79a1c19e34

11 years agoPT-BR: Added missing translations + Issue 6676 fix
Gustavo [Fri, 23 Nov 2012 02:55:01 +0000 (18:55 -0800)]
PT-BR: Added missing translations + Issue 6676 fix

jruesga: Fix themes/res/values-pt-rBR/strings.xml file mode to 0644

Change-Id: I3ddefe0ef5c71314f17845df0db4a3fa022e6ec2

11 years agoIssue 6743: CM FileManager can't recognize file types if named with capital suffix
Jorge Ruesga [Tue, 27 Nov 2012 23:39:07 +0000 (00:39 +0100)]
Issue 6743: CM FileManager can't recognize file types if named with capital suffix

Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6743

Added case compare to extension and mime/types.

Change-Id: I394472e03b5a92590088fdebbb75dd13ee4bade2

11 years agoIssue 6722: CM File Manager can not Play/Start files recorded with CM embedded Soundr...
Jorge Ruesga [Sun, 25 Nov 2012 19:53:23 +0000 (20:53 +0100)]
Issue 6722: CM File Manager can not Play/Start files recorded with CM embedded Soundrekorder

Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6722

Updated "video/3gpp" and "video/3gpp2" mime/types extensions

Change-Id: I5c04a582ea5f961dd6387602613d5b2248a9ff5e

11 years agoCMFileManager: Add Japanese translation
Takuo Kitame [Thu, 22 Nov 2012 04:55:59 +0000 (13:55 +0900)]
CMFileManager: Add Japanese translation

 - Initial Japanese translation for FileManager.
 - patch-2: Add translation for theme.
 - patch-3: Revised translation for theme.

Change-Id: Ie234334b2c09e2093976410046bdc990acd8ad9d

11 years agoCMFileManager: Fix quickfoldersearch command for files with whitespaces
Jorge Ruesga [Sat, 24 Nov 2012 20:58:21 +0000 (21:58 +0100)]
CMFileManager: Fix quickfoldersearch command for files with whitespaces

This change fixed the quickfoldersearch command used by InlineAutocompleteTextView
widget, when retrieve items with some whitespace in its name.
Replace awk by cut command, and redirect stderr output of ls to /dev/null.

Change-Id: Id039e573dc5e6ae5755b3251f014f34cd104f426

11 years agoCMFileManager: Compress type selection dialog has an invalid background
Jorge Ruesga [Sat, 24 Nov 2012 19:59:25 +0000 (20:59 +0100)]
CMFileManager: Compress type selection dialog has an invalid background

The background dialog for selecting the compression type has an invalid color.
The valid color is the background color of the dialog.

Change-Id: Ib5ecf1c59e5c99ccd6ed8707646b718ca88dbcd9

11 years agoCMFileManager: PickerActivity: debug requested paremeters
Jorge Ruesga [Sat, 24 Nov 2012 19:40:12 +0000 (20:40 +0100)]
CMFileManager: PickerActivity: debug requested paremeters

Add requested parameters to logcat for better debugging.

Change-Id: I52e362ca8ad4b3687b78ee92e18e3015a6e645e0

11 years agoCMFileManager: Formatting
Jorge Ruesga [Sat, 24 Nov 2012 19:31:09 +0000 (20:31 +0100)]
CMFileManager: Formatting

Change-Id: Ia3e72bdad1882afbb151d2f04340a1af88c20682

11 years agoCMFileManager: Check shell commands on startup
Jorge Ruesga [Mon, 19 Nov 2012 23:17:36 +0000 (00:17 +0100)]
CMFileManager: Check shell commands on startup

This change improved the detection of CM rooted devices with support for all the
commands used by CMFM. In case of one of this command was not detected, the app start
in chrooted-java mode (with limited support).

Change-Id: Ie0f61d74f9619f476ea517c1b3c03ec453e033f3

11 years agoCMFileManager: Escape $ on prepared arguments
Jorge Ruesga [Thu, 22 Nov 2012 01:44:45 +0000 (02:44 +0100)]
CMFileManager: Escape $ on prepared arguments

Escape $ character when passing arguments to shell. xe: create new file with  name "$My Documents"

Change-Id: I939d830beaa4c372aa679f3d27f7c691a29c421e

11 years agoCMFileManager: Add Greek translation
Michael Bestas [Mon, 19 Nov 2012 20:29:36 +0000 (22:29 +0200)]
CMFileManager: Add Greek translation

Patchset 2: Remove untranslatable strings

Patchset 3: Add missing themes translation

Change-Id: Ica0afe84cdd9fac9c243c817eb407a5d098e2410

11 years agoCMFileManager: updated romanian translation
igoriok [Wed, 21 Nov 2012 17:38:53 +0000 (19:38 +0200)]
CMFileManager: updated romanian translation

Change-Id: Ie230346ac607626432a41bcc36ad445ac16da520
Signed-off-by: igoriok <igor_sorocean@hotmail.com>
11 years agoCMFileManager: Fix ReadCommand incompatible buffer
Jorge Ruesga [Mon, 19 Nov 2012 23:05:35 +0000 (00:05 +0100)]
CMFileManager: Fix ReadCommand incompatible buffer

Replace Reader buffer for InputStream buffer for avoid incomplatible char[] -> byte[] conversion.

Change-Id: Ic916f55e5b0be96d1b4ffef36ddd5d5858ea3fdc

11 years agoUpdate Hungarian translations
Tamás Tóth [Mon, 19 Nov 2012 09:17:56 +0000 (10:17 +0100)]
Update Hungarian translations

Change-Id: Iaccfae69ced0570d61661858d8803d0630826fd8

11 years agoIssue 6606: CM File Manager will not Remember Selection for "Open With" menu
Jorge Ruesga [Sun, 18 Nov 2012 03:08:59 +0000 (04:08 +0100)]
Issue 6606: CM File Manager will not Remember Selection for "Open With" menu

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

11 years agoCMFileManager: AOSP GET_CONTENT_DATA compatibility
Jorge Ruesga [Sat, 17 Nov 2012 00:56:01 +0000 (01:56 +0100)]
CMFileManager: AOSP GET_CONTENT_DATA compatibility

This change brings compatibility to GET_CONTENT_DATA for AOSP apps when
using the PickerActivity:

* Detect crop extra; use the com.android.camera.action.CROP action of Gallery3d
to crop and return the requested image. This gets compatilibity for example with
the contacts app, when a user try to set the image of a contact.
* Detect android.provider.MediaStore.Audio.Media.EXTRA_MAX_BYTES; when this extra
is present the PickerActivity only display (and allow select) files with a size lower
than requested.
* Detect Intent.EXTRA_LOCAL_ONLY; useless until CMFM allow access remote file systems.

Change-Id: I1020458505b236653e869ec1c1f532dd6d686633

11 years agoCMFileManager: Fix Typo
invisiblek [Tue, 11 Dec 2012 15:58:35 +0000 (09:58 -0600)]
CMFileManager: Fix Typo

Change-Id: I159e434573698e5e437aa63783a233cb96046f46

11 years agoCMFileManager: fr_FR - Remove unnecessary translatable string
Jorge Ruesga [Sun, 18 Nov 2012 03:35:48 +0000 (04:35 +0100)]
CMFileManager: fr_FR - Remove unnecessary translatable string

See comment on http://review.cyanogenmod.org/#/c/26616/

Change-Id: I71eafaad82c41bed56166518490f4dcd4d4d20a9