Merge "Prevent exception when temporarily detaching the RemoteInputView's EditText." into sc-dev
This commit is contained in:
@@ -749,7 +749,10 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
|
|||||||
super.dispatchStartTemporaryDetach();
|
super.dispatchStartTemporaryDetach();
|
||||||
// Detach the EditText temporarily such that it doesn't get onDetachedFromWindow and
|
// Detach the EditText temporarily such that it doesn't get onDetachedFromWindow and
|
||||||
// won't lose IME focus.
|
// won't lose IME focus.
|
||||||
detachViewFromParent(mEditText);
|
final int iEditText = indexOfChild(mEditText);
|
||||||
|
if (iEditText != -1) {
|
||||||
|
detachViewFromParent(iEditText);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user