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:
@@ -338,7 +338,7 @@ public class ChooseLockGeneric extends SettingsActivity {
|
||||
}
|
||||
} else if (requestCode == CHOOSE_LOCK_BEFORE_FINGERPRINT_REQUEST
|
||||
&& resultCode == FingerprintEnrollBase.RESULT_FINISHED) {
|
||||
Intent intent = new Intent(getActivity(), FingerprintEnrollFindSensor.class);
|
||||
Intent intent = getFindSensorIntent(getActivity());
|
||||
if (data != null) {
|
||||
intent.putExtras(data.getExtras());
|
||||
}
|
||||
@@ -359,6 +359,10 @@ public class ChooseLockGeneric extends SettingsActivity {
|
||||
}
|
||||
}
|
||||
|
||||
protected Intent getFindSensorIntent(Context context) {
|
||||
return new Intent(context, FingerprintEnrollFindSensor.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSaveInstanceState(Bundle outState) {
|
||||
super.onSaveInstanceState(outState);
|
||||
|
Reference in New Issue
Block a user