From b9025932bc6ae2c14886845bb854c0f2145eac3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tiansiming=20=5B=E7=94=B0=E6=80=9D=E6=98=8E=5D?= Date: Mon, 5 Feb 2018 18:28:28 +0800 Subject: Modify javadoc for onWindowShown MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit onWindowShown is more like it should called after mWindow.show() in InputMethodService. Considering the compatibility problem, just make its javadoc clearer to the IME developers rather than change the calling order. Bug: 72922821 Test: N/A Change-Id: Ibfe20f40a65475f39c8e79d10e2c494e212cf054 Signed-off-by: tiansiming [田思明] --- core/java/android/inputmethodservice/InputMethodService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/java/android/inputmethodservice/InputMethodService.java') diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 7a20943e2a4b..1bafcaec280a 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -1726,9 +1726,9 @@ public class InputMethodService extends AbstractInputMethodService { } /** - * Called when the input method window has been shown to the user, after - * previously not being visible. This is done after all of the UI setup - * for the window has occurred (creating its views etc). + * Called immediately before the input method window is shown to the user. + * You could override this to prepare for the window to be shown + * (update view structure etc). */ public void onWindowShown() { // Intentionally empty -- cgit v1.2.3