Set QR scan activity to light theme in setup flow
Test: atest Bug: 131029518 Change-Id: Ibec28e78fcf17390cd3844ead4a88a4e6bff6094
This commit is contained in:
@@ -60,16 +60,18 @@ public class WifiDialogActivity extends Activity implements WifiDialog.WifiDialo
|
||||
|
||||
private WifiDialog mDialog;
|
||||
|
||||
private Intent mIntent;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
final Intent intent = getIntent();
|
||||
if (WizardManagerHelper.isSetupWizardIntent(intent)) {
|
||||
setTheme(SetupWizardUtils.getTransparentTheme(intent));
|
||||
mIntent = getIntent();
|
||||
if (WizardManagerHelper.isSetupWizardIntent(mIntent)) {
|
||||
setTheme(SetupWizardUtils.getTransparentTheme(mIntent));
|
||||
}
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
final Bundle accessPointState = intent.getBundleExtra(KEY_ACCESS_POINT_STATE);
|
||||
final Bundle accessPointState = mIntent.getBundleExtra(KEY_ACCESS_POINT_STATE);
|
||||
AccessPoint accessPoint = null;
|
||||
if (accessPointState != null) {
|
||||
accessPoint = new AccessPoint(this, accessPointState);
|
||||
@@ -175,9 +177,11 @@ public class WifiDialogActivity extends Activity implements WifiDialog.WifiDialo
|
||||
|
||||
@Override
|
||||
public void onScan(WifiDialog dialog, String ssid) {
|
||||
Intent intent = WifiDppUtils.getEnrolleeQrCodeScannerIntent(ssid);
|
||||
WizardManagerHelper.copyWizardManagerExtras(mIntent, intent);
|
||||
|
||||
// Launch QR code scanner to join a network.
|
||||
startActivityForResult(WifiDppUtils.getEnrolleeQrCodeScannerIntent(ssid),
|
||||
REQUEST_CODE_WIFI_DPP_ENROLLEE_QR_CODE_SCANNER);
|
||||
startActivityForResult(intent, REQUEST_CODE_WIFI_DPP_ENROLLEE_QR_CODE_SCANNER);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user