Commit 89914ffd authored by razorloves's avatar razorloves
Browse files

SetupWizard: Update wizard script to fix flow

The flow in google's suw for nougat changed a while back, which caused
the wifi network selection step to be skipped when picking the
"Copy your data" option. The workaround was to go back a step and
select the "Setup as new" option, then you could setup wifi, then go
back a couple steps to do the "Copy your data" option.

This change fixes that bug by editing the wizard script in lineage suw
to match the flow in the wizard script in google suw.

Change-Id: Ic9c9e3451af83e099e939f0ec505d24eb76c8457
parent 9b3473b1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- <!--
Copyright (c) 2014 Google Inc. Copyright (c) 2014 Google Inc.
Copyright (C) 2017 The LineageOS Project Copyright (C) 2017,2019 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
...@@ -49,22 +49,10 @@ ...@@ -49,22 +49,10 @@
<result wizard:action="flow_choice" /> <result wizard:action="flow_choice" />
</WizardAction> </WizardAction>
<WizardAction wizard:uri="intent:#Intent;;end" id="flow_choice"> <WizardAction wizard:uri="intent:#Intent;;end" id="flow_choice">
<result wizard:resultCode="-1" wizard:action="restore_choice" wizard:name="ok" />
<result wizard:resultCode="1" wizard:action="setup_as_new_flow" wizard:name="skip" /> <result wizard:resultCode="1" wizard:action="setup_as_new_flow" wizard:name="skip" />
<result wizard:action="restore_with_account_flow" /> <result wizard:action="restore_flow" />
</WizardAction> </WizardAction>
<WizardAction wizard:uri="intent:#Intent;;end" id="restore_choice"> <WizardAction wizard:script="android.resource://" id="restore_flow">
<result wizard:resultCode="101" wizard:action="restore_with_device_flow" wizard:name="d2d" />
<result wizard:resultCode="102" wizard:action="restore_with_ios_flow" wizard:name="ios_restore" />
<result wizard:action="restore_with_account_flow" />
<WizardAction wizard:script="android.resource://" id="restore_with_account_flow">
<result wizard:action="oem_post_setup" />
<WizardAction wizard:script="android.resource://" id="restore_with_device_flow">
<result wizard:action="oem_post_setup" />
<WizardAction wizard:script="android.resource://" id="restore_with_ios_flow">
<result wizard:action="oem_post_setup" /> <result wizard:action="oem_post_setup" />
</WizardAction> </WizardAction>
<WizardAction wizard:script="android.resource://" id="setup_as_new_flow"> <WizardAction wizard:script="android.resource://" id="setup_as_new_flow">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment