Can launch into the lock screen with setup wizard style
The trampoline currently always uses the settings style for set action new password. When called during setup wizard, it should launch the setup wizard style. Test: Added robotests for launching activity and copying setup wizard extras. Also manually tested with an application when device is provisioned and not provisioned. bug:32575389 Change-Id: I5763eb87b63a46b05cd200bb73b15bdc24c8bd3b
This commit is contained in:
@@ -33,6 +33,7 @@ import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import com.android.internal.widget.LockPatternUtils;
|
||||
import com.android.settings.fingerprint.SetupFingerprintEnrollFindSensor;
|
||||
import com.android.settings.fingerprint.SetupSkipDialog;
|
||||
import com.android.settings.utils.SettingsDividerItemDecoration;
|
||||
import com.android.setupwizardlib.GlifPreferenceLayout;
|
||||
@@ -242,5 +243,12 @@ public class SetupChooseLockGeneric extends ChooseLockGeneric {
|
||||
SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Intent getFindSensorIntent(Context context) {
|
||||
final Intent intent = new Intent(context, SetupFingerprintEnrollFindSensor.class);
|
||||
SetupWizardUtils.copySetupExtras(getActivity().getIntent(), intent);
|
||||
return intent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user