From 3db07bb547564ac0f2ac5f503ae64b4e1ed2d9ea Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Mon, 5 Feb 2018 15:26:25 +0900 Subject: [PATCH] Fix missing JavaDoc of IMM#toggleSoftInput() This CL addresses a typo in the JavaDoc of IMM#toggleSoftInput(), which has prevented it from being treated as a valid JavaDoc. Note that this CL removes @hide simply because it is too late. The method in question has already been exposed to developers since API level 3 (Cupcake) because of the typo. Bug: 13002424 Test: make -j doc-comment-check-docs Change-Id: I3e42d433f20c56ee63373bb390aad59e3bd7ec4f --- core/java/android/view/inputmethod/InputMethodManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index 33c9f7a2671e8..9de26a86f20fd 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -1179,8 +1179,9 @@ public final class InputMethodManager { } } - /* + /** * This method toggles the input method window display. + * * If the input window is already displayed, it gets hidden. * If not the input window will be displayed. * @param showFlags Provides additional operating flags. May be @@ -1189,7 +1190,6 @@ public final class InputMethodManager { * @param hideFlags Provides additional operating flags. May be * 0 or have the {@link #HIDE_IMPLICIT_ONLY}, * {@link #HIDE_NOT_ALWAYS} bit set. - * @hide */ public void toggleSoftInput(int showFlags, int hideFlags) { if (mCurMethod != null) {