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

Commit 616a2144 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add Cancel button in Car Keyguard" into pi-dev

parents 3f345a99 44e4d82d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -98,5 +98,8 @@
    <item type="id" name="status_bar_view_state_tag" />

    <item type="id" name="display_cutout" />

    <!-- Optional cancel button on Keyguard -->
    <item type="id" name="cancel_button"/>
</resources>
+7 −0
Original line number Diff line number Diff line
@@ -107,6 +107,13 @@ public class KeyguardPINView extends KeyguardPinBasedInputView {
                new View[]{
                        null, mEcaView, null
                }};

        View cancelBtn = findViewById(R.id.cancel_button);
        if (cancelBtn != null) {
            cancelBtn.setOnClickListener(view -> {
                mCallback.reset();
            });
        }
    }

    @Override
+7 −0
Original line number Diff line number Diff line
@@ -205,6 +205,13 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView
            }
        });

        View cancelBtn = findViewById(R.id.cancel_button);
        if (cancelBtn != null) {
            cancelBtn.setOnClickListener(view -> {
                mCallback.reset();
            });
        }

        // If there's more than one IME, enable the IME switcher button
        updateSwitchImeButton();

+7 −0
Original line number Diff line number Diff line
@@ -157,6 +157,13 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit
        if (button != null) {
            button.setCallback(this);
        }

        View cancelBtn = findViewById(R.id.cancel_button);
        if (cancelBtn != null) {
            cancelBtn.setOnClickListener(view -> {
                mCallback.reset();
            });
        }
    }

    @Override