From 6f5dcc35468d564eee925c0a479d988d0fd91163 Mon Sep 17 00:00:00 2001 From: Justin Koh Date: Mon, 5 May 2014 16:08:38 -0700 Subject: [PATCH] Hide KeyEvent#isCancelKey, isConfirmKey DO NOT MERGE Bug: 14116162 Change-Id: I6b947c9b46bb5ea094b39428bb432e8f6fc6b57a --- api/current.txt | 2 -- core/java/android/view/KeyEvent.java | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/current.txt b/api/current.txt index b24bb57993f42..f81a575086fd8 100644 --- a/api/current.txt +++ b/api/current.txt @@ -26736,10 +26736,8 @@ package android.view { method public final boolean hasModifiers(int); method public final boolean hasNoModifiers(); method public final boolean isAltPressed(); - method public final boolean isCancelKey(); method public final boolean isCanceled(); method public final boolean isCapsLockOn(); - method public final boolean isConfirmKey(); method public final boolean isCtrlPressed(); method public final boolean isFunctionPressed(); method public static final boolean isGamepadButton(int); diff --git a/core/java/android/view/KeyEvent.java b/core/java/android/view/KeyEvent.java index 7b389c0655b7f..214fd1256daf9 100644 --- a/core/java/android/view/KeyEvent.java +++ b/core/java/android/view/KeyEvent.java @@ -1855,6 +1855,7 @@ public class KeyEvent extends InputEvent implements Parcelable { * Returns true if the key event should be treated as a confirming action. * @return True for a confirmation key, such as {@link #KEYCODE_DPAD_CENTER}, * {@link #KEYCODE_ENTER}, or {@link #KEYCODE_BUTTON_A}. + * @hide */ public final boolean isConfirmKey() { switch (mKeyCode) { @@ -1871,6 +1872,7 @@ public class KeyEvent extends InputEvent implements Parcelable { * Returns true if the key event should be treated as a cancelling action. * @return True for a cancellation key, such as {@link #KEYCODE_ESCAPE}, * {@link #KEYCODE_BACK}, or {@link #KEYCODE_BUTTON_B}. + * @hide */ public final boolean isCancelKey() { switch (mKeyCode) {