OSDN Git Service

Use System Resolver
authorherriojr <jherriott@cyngn.com>
Fri, 16 Oct 2015 22:17:22 +0000 (15:17 -0700)
committerherriojr <jherriott@cyngn.com>
Fri, 16 Oct 2015 22:47:14 +0000 (15:47 -0700)
commit3a4d70fe0513bf1faf817e8d0d90b73f1e32707a
treee1b0223eb39f4456839094a79e23e6c4f3a604a6
parent25bcc733b630c3ee032b185ab9adfbbd99e4cbbc
Use System Resolver

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
src/com/cyanogenmod/filemanager/activities/SearchActivity.java
src/com/cyanogenmod/filemanager/activities/ShortcutActivity.java
src/com/cyanogenmod/filemanager/ui/dialogs/ActionsDialog.java
src/com/cyanogenmod/filemanager/ui/policy/IntentsActionPolicy.java
src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java