Merge "Add clipboard source to edit image intent" into tm-dev am: 0c44208351 am: 2a2992a3fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17144196 Change-Id: I8d9cc44a41aaadc301eceb8593d9380c4df54c02 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -107,6 +107,8 @@ public class ClipboardOverlayController {
|
|||||||
public static final String SELF_PERMISSION = "com.android.systemui.permission.SELF";
|
public static final String SELF_PERMISSION = "com.android.systemui.permission.SELF";
|
||||||
public static final String COPY_OVERLAY_ACTION = "com.android.systemui.COPY";
|
public static final String COPY_OVERLAY_ACTION = "com.android.systemui.COPY";
|
||||||
|
|
||||||
|
private static final String EXTRA_EDIT_SOURCE_CLIPBOARD = "edit_source_clipboard";
|
||||||
|
|
||||||
private static final int CLIPBOARD_DEFAULT_TIMEOUT_MILLIS = 6000;
|
private static final int CLIPBOARD_DEFAULT_TIMEOUT_MILLIS = 6000;
|
||||||
private static final int SWIPE_PADDING_DP = 12; // extra padding around views to allow swipe
|
private static final int SWIPE_PADDING_DP = 12; // extra padding around views to allow swipe
|
||||||
|
|
||||||
@@ -391,6 +393,7 @@ public class ClipboardOverlayController {
|
|||||||
editIntent.setDataAndType(uri, "image/*");
|
editIntent.setDataAndType(uri, "image/*");
|
||||||
editIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
editIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||||
editIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
editIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||||
|
editIntent.putExtra(EXTRA_EDIT_SOURCE_CLIPBOARD, true);
|
||||||
mContext.startActivity(editIntent);
|
mContext.startActivity(editIntent);
|
||||||
animateOut();
|
animateOut();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user