Loading packages/SystemUI/res/values/ids.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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> packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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 Loading packages/SystemUI/src/com/android/keyguard/KeyguardPasswordView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
packages/SystemUI/res/values/ids.xml +3 −0 Original line number Diff line number Diff line Loading @@ -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>
packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
packages/SystemUI/src/com/android/keyguard/KeyguardPasswordView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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(); Loading
packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java +7 −0 Original line number Diff line number Diff line Loading @@ -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 Loading