diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-01-23 16:04:52 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-01-23 16:04:52 +0000 |
| commit | a3382a4fefc481d00323f102d36dd6f627650718 (patch) | |
| tree | 0624df872f46c00b8a045e62d6d235047c07bb88 /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | 3a02bebb341c8ca414c8da403b2e74e356683eff (diff) | |
| parent | 0eb8d16d904cb484097f20cf3aa24b0eda223dc1 (diff) | |
Merge "Deprecate InputMethodService#onViewClicked()"
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
| -rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index d3509d5eb289..38ddc169f527 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -2087,7 +2087,14 @@ public class InputMethodService extends AbstractInputMethodService { * protocol, so applications with custom text editing written before this method appeared will * not call to inform the IME of this interaction. * @param focusChanged true if the user changed the focused view by this click. + * @see InputMethodManager#viewClicked(View) + * @deprecated The method may not be called for composite {@link View} that works as a giant + * "Canvas", which can host its own UI hierarchy and sub focus state. + * {@link android.webkit.WebView} is a good example. Application / IME developers + * should not rely on this method. If your goal is just being notified when an + * on-going input is interrupted, simply monitor {@link #onFinishInput()}. */ + @Deprecated public void onViewClicked(boolean focusChanged) { // Intentionally empty } |
