Merge "Add intent fields when launching instant app." into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-07 00:59:20 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 0 deletions

View File

@@ -262,6 +262,9 @@ public class InstantAppButtonsPreferenceControllerTest {
verify(mFragment).startActivity(argThat(intent-> intent != null
&& intent.getAction().equals(Intent.ACTION_VIEW)
&& intent.hasCategory(Intent.CATEGORY_BROWSABLE)
&& (intent.getFlags() & Intent.FLAG_ACTIVITY_NEW_TASK) != 0
&& TextUtils.equals(intent.getPackage(), TEST_AIA_PACKAGE_NAME)
&& TextUtils.equals(intent.getDataString(), launchUri)));
}