DocumentsUI: Move intent related constants to BaseActivity.DocumentsIntent.
BUG=None Change-Id: I81d367d5f8d727a5fa76bc22b2fe871ae441dbcf
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user