summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authortiansiming [田思明] <tiansiming@xiaomi.com>2018-02-05 18:28:28 +0800
committersiming tian <tiansiming@xiaomi.com>2018-02-07 15:40:07 +0000
commitb9025932bc6ae2c14886845bb854c0f2145eac3c (patch)
treed4d84bd6ce11a610b1dbd5e4e6b804822238ee7a /core/java/android/inputmethodservice/InputMethodService.java
parent2e9bdd78f2e7596bd57d2e17e5df4b68796583e1 (diff)
Modify javadoc for onWindowShown
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 [田思明] <tiansiming@xiaomi.com>
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
-rw-r--r--core/java/android/inputmethodservice/InputMethodService.java6
1 files changed, 3 insertions, 3 deletions
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