Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f31ba8c4 authored by Jeff DeCew's avatar Jeff DeCew Committed by Android (Google) Code Review
Browse files

Merge "Trace RemoteEditText#hideIme which can make binder calls" into udc-qpr-dev

parents 194cce35 ff09b417
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.drawable.GradientDrawable;
import android.os.Trace;
import android.os.UserHandle;
import android.text.Editable;
import android.text.SpannedString;
@@ -1032,10 +1033,12 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
        }

        private void hideIme() {
            Trace.beginSection("RemoteEditText#hideIme");
            final WindowInsetsController insetsController = getWindowInsetsController();
            if (insetsController != null) {
                insetsController.hide(WindowInsets.Type.ime());
            }
            Trace.endSection();
        }

        private void defocusIfNeeded(boolean animate) {