Merge "Prevent exception when temporarily detaching the RemoteInputView's EditText." into sc-dev am: 0b2f05287c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14938832 Change-Id: I5d00d4b4003232b808cc265071b53d1de826f75a
This commit is contained in:
@@ -749,7 +749,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
|
||||
|
||||
Reference in New Issue
Block a user