Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7423d88c authored by Michael Bestas's avatar Michael Bestas Committed by Alessandro Astone
Browse files

SetupWizard: Add seedvault restore page in GMS flow

Change-Id: I1ce86864b4a8d0477cd2db77a3820583e24c758a
parent c61ad50d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -266,7 +266,6 @@
                  android:excludeFromRecents="true"
                  android:configChanges="mcc|mnc"
                  android:immersive="true"
                  android:exported="false"
                  android:windowSoftInputMode="stateAlwaysHidden">
            <intent-filter>
                <action android:name="org.lineageos.setupwizard.LINEAGE_RESTORE_BACKUP"/>
+3 −0
Original line number Diff line number Diff line
@@ -99,6 +99,9 @@
    </WizardAction>
    <WizardAction wizard:script="android.resource://com.google.android.setupwizard/xml/wizard_script_qr_provision_flow" id="qr_provision_flow" />
    <WizardAction wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_SETTINGS;end" id="oem_post_setup">
        <result wizard:action="restore" />
    </WizardAction>
    <WizardAction wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_RESTORE_BACKUP;end" id="restore">
        <result wizard:action="finish" />
    </WizardAction>
    <WizardAction wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_SETUP_COMPLETE;end" id="finish">
+10 −0
Original line number Diff line number Diff line
@@ -17,7 +17,11 @@

package org.lineageos.setupwizard.backup;

import android.app.Activity;
import android.content.Intent;

import com.google.android.setupcompat.util.WizardManagerHelper;

import org.lineageos.setupwizard.R;
import org.lineageos.setupwizard.SubBaseActivity;

@@ -33,6 +37,12 @@ public class RestoreIntroActivity extends SubBaseActivity {
        findViewById(R.id.intro_restore_button).setOnClickListener(v -> launchRestore());
    }

    @Override
    protected void onNextPressed() {
        Intent intent = WizardManagerHelper.getNextIntent(getIntent(), Activity.RESULT_OK);
        nextAction(NEXT_REQUEST, intent);
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.intro_restore_activity;