summaryrefslogtreecommitdiffstats
path: root/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-04-11 21:27:21 -0700
committerJeff Sharkey <jsharkey@android.com>2015-04-12 16:03:50 -0700
commit59d577a518333f4b4514315b6d10e8dba160abcd (patch)
tree268c85abce485b339684449ed1c807adaa0c1124 /packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
parent6036cd51265d31c08eefe0470a9f37e7f757aae8 (diff)
downloadframeworks_base-59d577a518333f4b4514315b6d10e8dba160abcd.zip
frameworks_base-59d577a518333f4b4514315b6d10e8dba160abcd.tar.gz
frameworks_base-59d577a518333f4b4514315b6d10e8dba160abcd.tar.bz2
Browse mode for DocumentsUI, removed volume state.
The existing management mode is too specific, and requires that storage backends add queryChildDocumentsForManage(), etc. Instead, to offer more natural browsing support, add a new BROWSE_ROOT intent. It behaves mostly like MANAGE_ROOT, except that it doesn't mutate its Uris with setManageMode(), and it shortcuts straight to VIEW on clicked documents. It can be launched like this: $ adb shell am start -a android.provider.action.BROWSE_ROOT -d content://com.android.externalstorage.documents/root/8405-1DFB -c android.intent.category.DEFAULT Also rename a MetricsConstants to make it clearer, and don't auto-mount all emulated volumes. Fix bugs around parceling of DiskInfo/VolumeInfo. Method to resolve the best description for a VolumeInfo, which might need to fall back to DiskInfo. Add back "removed" volume state so we send broadcast when a volume is destroyed, matching the expected public API behavior. Bug: 19993667 Change-Id: I13aff32c5e11dfc63da44aee9e93a27f4690a43f
Diffstat (limited to 'packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java')
-rw-r--r--packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java b/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
index a8a0c1d..bf3a940 100644
--- a/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
+++ b/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
@@ -88,7 +88,8 @@ abstract class BaseActivity extends Activity {
public static final int ACTION_GET_CONTENT = 3;
public static final int ACTION_OPEN_TREE = 4;
public static final int ACTION_MANAGE = 5;
- public static final int ACTION_MANAGE_ALL = 6;
+ public static final int ACTION_BROWSE = 6;
+ public static final int ACTION_BROWSE_ALL = 7;
public static final int MODE_UNKNOWN = 0;
public static final int MODE_LIST = 1;