summaryrefslogtreecommitdiffstats
path: root/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
diff options
context:
space:
mode:
authorDaichi Hirono <hirono@google.com>2015-04-15 13:41:18 +0900
committerDaichi Hirono <hirono@google.com>2015-04-15 13:43:28 +0900
commit1a2fdb496ec080cd6ff7ed547320dcfa7994abbd (patch)
treeef45a17365f2e0550b084837d60c8b9f1731ea28 /packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
parentc96e494ac73e11dfd34a2df39c80d673474c4d44 (diff)
downloadframeworks_base-1a2fdb496ec080cd6ff7ed547320dcfa7994abbd.zip
frameworks_base-1a2fdb496ec080cd6ff7ed547320dcfa7994abbd.tar.gz
frameworks_base-1a2fdb496ec080cd6ff7ed547320dcfa7994abbd.tar.bz2
DocumentsUI: Move intent related constants to BaseActivity.DocumentsIntent.
BUG=None Change-Id: I81d367d5f8d727a5fa76bc22b2fe871ae441dbcf
Diffstat (limited to 'packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java')
-rw-r--r--packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java b/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
index 842d9fc..66792da 100644
--- a/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
+++ b/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
@@ -33,16 +33,6 @@ import com.android.documentsui.model.RootInfo;
import com.google.common.collect.Maps;
abstract class BaseActivity extends Activity {
- /** Intent action name to open copy destination. */
- 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();
@@ -62,6 +52,18 @@ abstract class BaseActivity extends Activity {
return (BaseActivity) fragment.getActivity();
}
+ public static abstract class DocumentsIntent {
+ /** Intent action name to open copy destination. */
+ public static String ACTION_OPEN_COPY_DESTINATION =
+ "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 static class State implements android.os.Parcelable {
public int action;
public String[] acceptMimes;