Set ConfirmDeviceCredentialActivity non-external in FRP

FRP ConfirmDeviceCredentialActivity launched in initial setup flow should belong to internal flow, so it needs to set the external flag to false. It can  transmit setup intent extra to the stencil library to make the screen be applied to the stencil and BC layout.

Bug: 171950236
Test: Manual test & RunSettingsGoogleRoboTests
Change-Id: Ia98d1bb4fc3a1687992b202b1e58afc1463efaf4
This commit is contained in:
Pasty Chang
2021-02-25 08:05:07 +00:00
parent a173e4eee5
commit ba5e25e3b1

View File

@@ -228,7 +228,7 @@ public class ConfirmDeviceCredentialActivity extends FragmentActivity {
launchedCDC = builder.setHeader(mTitle) // Show the title in the header location launchedCDC = builder.setHeader(mTitle) // Show the title in the header location
.setDescription(mDetails) .setDescription(mDetails)
.setAlternateButton(alternateButton) .setAlternateButton(alternateButton)
.setExternal(true) .setExternal(false)
.setUserId(LockPatternUtils.USER_FRP) .setUserId(LockPatternUtils.USER_FRP)
.show(); .show();
} else if (isManagedProfile && isInternalActivity() } else if (isManagedProfile && isInternalActivity()