OSDN Git Service

Issue 6606: CM File Manager will not Remember Selection for "Open With" menu
authorJorge Ruesga <jorge@ruesga.com>
Sun, 18 Nov 2012 03:08:59 +0000 (04:08 +0100)
committerJorge Ruesga <jorge@ruesga.com>
Tue, 11 Dec 2012 21:20:41 +0000 (22:20 +0100)
commit24665762292e0b817b6e82db992d61a1775ded2e
tree4772aba57040845201ef93a0aed4866e9638bb9e
parent0f3469ab6dd245913183484caed16df3bcb15893
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
AndroidManifest.xml
src/com/cyanogenmod/filemanager/activities/EditorActivity.java
src/com/cyanogenmod/filemanager/ui/dialogs/AssociationsDialog.java
src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java