From 8bbaf3def25fb233400d70aa50454f0581021cbd Mon Sep 17 00:00:00 2001 From: Matt Casey Date: Sun, 5 Feb 2023 04:03:56 +0000 Subject: [intentresolver] Reselection -> modify share Doesn't change the UI or logging in this change, just API and code naming. Bug: 267870268 Test: atest UnbundledChooserActivityTest Change-Id: I2b8a68ed1e3fe1e6d4bdb1a89f155afdf377159a Merged-In: I2b8a68ed1e3fe1e6d4bdb1a89f155afdf377159a (cherry picked from commit 6333997c2c04f2e71c8fefad56a651e88bd25922) --- .../android/intentresolver/UnbundledChooserActivityTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'java/tests') diff --git a/java/tests/src/com/android/intentresolver/UnbundledChooserActivityTest.java b/java/tests/src/com/android/intentresolver/UnbundledChooserActivityTest.java index c90f0b63..17fd5bd9 100644 --- a/java/tests/src/com/android/intentresolver/UnbundledChooserActivityTest.java +++ b/java/tests/src/com/android/intentresolver/UnbundledChooserActivityTest.java @@ -1998,7 +1998,7 @@ public class UnbundledChooserActivityTest { } @Test - public void testLaunchWithPayloadReselection() throws InterruptedException { + public void testLaunchWithShareModification() throws InterruptedException { ChooserActivityOverrideData.getInstance().featureFlagRepository = new TestFeatureFlagRepository( Collections.singletonMap(Flags.SHARESHEET_RESELECTION_ACTION, true)); @@ -2015,14 +2015,14 @@ public class UnbundledChooserActivityTest { .thenReturn(resolvedComponentInfos); Context testContext = InstrumentationRegistry.getInstrumentation().getContext(); - final String reselectionAction = "test-broadcast-receiver-action"; + final String modifyShareAction = "test-broadcast-receiver-action"; Intent chooserIntent = Intent.createChooser(createSendTextIntent(), null); chooserIntent.putExtra( - Intent.EXTRA_CHOOSER_PAYLOAD_RESELECTION_ACTION, + Intent.EXTRA_CHOOSER_MODIFY_SHARE_ACTION, PendingIntent.getBroadcast( testContext, 123, - new Intent(reselectionAction), + new Intent(modifyShareAction), PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_ONE_SHOT)); // Start activity mActivityRule.launchActivity(chooserIntent); @@ -2035,7 +2035,7 @@ public class UnbundledChooserActivityTest { broadcastInvoked.countDown(); } }; - testContext.registerReceiver(testReceiver, new IntentFilter(reselectionAction)); + testContext.registerReceiver(testReceiver, new IntentFilter(modifyShareAction)); try { onView(withText(R.string.select_text)).perform(click()); -- cgit v1.2.3-59-g8ed1b