Merge "Change image attachment test to use a public resource ID" into tm-qpr-dev am: 7fc1f0cb64
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20065272 Change-Id: I0c2dbc60d1f71dd2a70addd0a359661297003dcd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -275,10 +275,9 @@ public class RemoteInputViewTest extends SysuiTestCase {
|
|||||||
EditText editText = view.findViewById(R.id.remote_input_text);
|
EditText editText = view.findViewById(R.id.remote_input_text);
|
||||||
editText.setText(TEST_REPLY);
|
editText.setText(TEST_REPLY);
|
||||||
ClipDescription description = new ClipDescription("", new String[] {"image/png"});
|
ClipDescription description = new ClipDescription("", new String[] {"image/png"});
|
||||||
// We need to use an (arbitrary) real resource here so that an actual image gets attached.
|
// We need to use an (arbitrary) real resource here so that an actual image gets attached
|
||||||
ClipData clip = new ClipData(description, new ClipData.Item(
|
ClipData clip = new ClipData(description, new ClipData.Item(
|
||||||
Uri.parse("android.resource://com.android.systemui/"
|
Uri.parse("android.resource://android/" + android.R.drawable.btn_default)));
|
||||||
+ R.drawable.default_thumbnail)));
|
|
||||||
ContentInfo payload =
|
ContentInfo payload =
|
||||||
new ContentInfo.Builder(clip, SOURCE_CLIPBOARD).build();
|
new ContentInfo.Builder(clip, SOURCE_CLIPBOARD).build();
|
||||||
view.setAttachment(payload);
|
view.setAttachment(payload);
|
||||||
|
|||||||
Reference in New Issue
Block a user