diff options
author | Daichi Hirono <hirono@google.com> | 2015-04-14 17:12:54 +0900 |
---|---|---|
committer | Daichi Hirono <hirono@google.com> | 2015-04-15 13:27:55 +0900 |
commit | 9be34298be02783b4cc91cf1784aa0627cf36012 (patch) | |
tree | 8dadd1cb2520351fce3c8118b3781a703b121fea /packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java | |
parent | fff30439cafb737eb54de807caab4fb61432f2cc (diff) | |
download | frameworks_base-9be34298be02783b4cc91cf1784aa0627cf36012.zip frameworks_base-9be34298be02783b4cc91cf1784aa0627cf36012.tar.gz frameworks_base-9be34298be02783b4cc91cf1784aa0627cf36012.tar.bz2 |
DocumentsUI: Filter out downloads root if the source documents include directory.
This is the short term solution for the downloads root, which does not support
directory creation. For the long term solution, we need to add a flag to Root
model to check if the root support directory creation or not.
BUG=20186663
Change-Id: I15c4795892f38e3f968776f732a6f2160ae775fc
Diffstat (limited to 'packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java')
-rw-r--r-- | packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java b/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java index bd17401..842d9fc 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java +++ b/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java @@ -37,6 +37,12 @@ abstract class BaseActivity extends Activity { public static String ACTION_OPEN_COPY_DESTINATION_STRING = "com.android.documentsui.OPEN_COPY_DESTINATION"; + /** + * Extra boolean flag for ACTION_OPEN_COPY_DESTINATION_STRING, which + * specifies if the destination directory needs to create new directory or not. + */ + public static String EXTRA_DIRECTORY_COPY = "com.android.documentsui.DIRECTORY_COPY"; + public abstract State getDisplayState(); public abstract RootInfo getCurrentRoot(); public abstract void onStateChanged(); @@ -77,6 +83,7 @@ abstract class BaseActivity extends Activity { public boolean showAdvanced = false; public boolean stackTouched = false; public boolean restored = false; + public boolean directoryCopy = false; /** Current user navigation stack; empty implies recents. */ public DocumentStack stack = new DocumentStack(); |