Merge "Show logs when an app tries to show the IME"
This commit is contained in:
@@ -828,6 +828,9 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
|
||||
|
||||
@VisibleForTesting
|
||||
public void show(@InsetsType int types, boolean fromIme) {
|
||||
if ((types & ime()) != 0) {
|
||||
Log.d(TAG, "show(ime(), fromIme=" + fromIme + ")");
|
||||
}
|
||||
if (fromIme) {
|
||||
ImeTracing.getInstance().triggerDump();
|
||||
Trace.asyncTraceEnd(TRACE_TAG_VIEW, "IC.showRequestFromApiToImeReady", 0);
|
||||
|
||||
@@ -1672,10 +1672,12 @@ public final class InputMethodManager {
|
||||
checkFocus();
|
||||
synchronized (mH) {
|
||||
if (!hasServedByInputMethodLocked(view)) {
|
||||
Log.w(TAG, "Ignoring showSoftInput() as view=" + view + " is not served.");
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
Log.d(TAG, "showSoftInput() view=" + view + " flags=" + flags);
|
||||
return mService.showSoftInput(
|
||||
mClient, view.getWindowToken(), flags, resultReceiver);
|
||||
} catch (RemoteException e) {
|
||||
|
||||
Reference in New Issue
Block a user