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

Commit 6c6dea27 authored by Jeff DeCew's avatar Jeff DeCew Committed by Automerger Merge Worker
Browse files

Merge "Prevent exception when temporarily detaching the RemoteInputView's...

Merge "Prevent exception when temporarily detaching the RemoteInputView's EditText." into sc-dev am: 0b2f0528 am: 21341b92

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14938832

Change-Id: I283a2a84a43ede453219b6cf53fbef2b9a1b6525
parents ee69b6ac 21341b92
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -747,7 +747,10 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
        super.dispatchStartTemporaryDetach();
        // Detach the EditText temporarily such that it doesn't get onDetachedFromWindow and
        // won't lose IME focus.
        detachViewFromParent(mEditText);
        final int iEditText = indexOfChild(mEditText);
        if (iEditText != -1) {
            detachViewFromParent(iEditText);
        }
    }

    @Override