diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2012-11-18 04:08:59 +0100 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2012-12-11 22:20:41 +0100 |
commit | 24665762292e0b817b6e82db992d61a1775ded2e (patch) | |
tree | 4772aba57040845201ef93a0aed4866e9638bb9e /AndroidManifest.xml | |
parent | 0f3469ab6dd245913183484caed16df3bcb15893 (diff) | |
download | android_packages_apps_CMFileManager-24665762292e0b817b6e82db992d61a1775ded2e.tar.gz android_packages_apps_CMFileManager-24665762292e0b817b6e82db992d61a1775ded2e.tar.bz2 android_packages_apps_CMFileManager-24665762292e0b817b6e82db992d61a1775ded2e.zip |
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
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r-- | AndroidManifest.xml | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index bc947fdb..c890c954 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -153,10 +153,26 @@ android:name=".activities.EditorActivity" android:label="@string/editor" android:configChanges="orientation|keyboardHidden|screenSize" - android:icon="@drawable/ic_launcher_editor" - android:exported="false"> + android:icon="@drawable/ic_launcher_editor"> <intent-filter> + <action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.EDIT" /> + <category android:name="android.intent.category.DEFAULT" /> + + <data android:scheme="file" /> + <data android:mimeType="text/*" /> + <data android:mimeType="application/javascript" /> + <data android:mimeType="application/json" /> + <data android:mimeType="application/xhtml+xml" /> + <data android:mimeType="application/xml" /> + <data android:mimeType="application/x-msdownload" /> + <data android:mimeType="application/x-csh" /> + <data android:mimeType="application/x-sh" /> + </intent-filter> + <intent-filter> + <action android:name="android.intent.action.VIEW" /> + <action android:name="android.intent.action.EDIT" /> + <category android:name="android.intent.category.DEFAULT" /> <category android:name="com.cyanogenmod.filemanager.category.INTERNAL_VIEWER" /> <category android:name="com.cyanogenmod.filemanager.category.EDITOR" /> </intent-filter> |