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

Commit d44eccbc authored by Hao Dong's avatar Hao Dong Committed by Automerger Merge Worker
Browse files

Merge "Fix delete face button disappear after reenroll" into udc-d1-dev am: 0f63a450

parents 0e815505 0f63a450
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -237,6 +237,8 @@ public class FaceSettings extends DashboardFragment {
    public void onStart() {
        super.onStart();
        final boolean hasEnrolled = mFaceManager.hasEnrolledTemplates(mUserId);
        mEnrollButton.setVisible(!hasEnrolled);
        mRemoveButton.setVisible(hasEnrolled);

        // When the user has face id registered but failed enrolling in device lock state,
        // lead users directly to the confirm deletion dialog in Face Unlock settings.