blob: e72c44904f268e51988def7fbd89ea067f55445d [file] [log] [blame]
/*
* SPDX-FileCopyrightText: 2016 The CyanogenMod Project
* SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
package org.lineageos.setupwizard;
import static com.google.android.setupcompat.util.ResultCodes.RESULT_SKIP;
import android.content.Intent;
import android.provider.Settings;
import org.lineageos.setupwizard.util.SetupWizardUtils;
public class BiometricActivity extends SubBaseActivity {
@Override
protected void onStartSubactivity() {
if (!SetupWizardUtils.hasBiometric(this)) {
SetupWizardUtils.enableComponent(this, ScreenLockActivity.class);
finishAction(RESULT_SKIP);
return;
} else {
SetupWizardUtils.disableComponent(this, ScreenLockActivity.class);
}
Intent intent = new Intent(Settings.ACTION_BIOMETRIC_ENROLL);
startSubactivity(intent);
}
}