title: Crash with email in EditText TextInput on Xiaomi devices running android 10
body: <p>Recently I got a crash in google play console.</p>
  <pre><code>java.lang.NullPointerException:  
    at android.widget.Editor$SelectionModifierCursorController.access$300 (Editor.java:6696) 
    at android.widget.Editor.getEmailPopupWindow (Editor.java:1469) 
    at android.widget.Editor.showEmailPopupWindow (Editor.java:1477) 
    at android.widget.Editor.handleEmailPopup (Editor.java:1456) 
    at android.widget.Editor.updateCursorPosition (Editor.java:2099) 
    at android.widget.TextView.getUpdatedHighlightPath (TextView.java:7813) 
    at android.widget.TextView.onDraw (TextView.java:7998) 
    at android.view.View.draw (View.java:21472) 
    at android.view.View.updateDisplayListIfDirty (View.java:20349) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.updateDisplayListIfDirty (View.java:20340) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.updateDisplayListIfDirty (View.java:20340) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at androidx.recyclerview.widget.RecyclerView.drawChild (RecyclerView.java:4820) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.updateDisplayListIfDirty (View.java:20340) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.draw (View.java:21475) 
    at android.view.View.updateDisplayListIfDirty (View.java:20349) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.draw (View.java:21475) 
    at android.view.View.updateDisplayListIfDirty (View.java:20349) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw (ConstraintLayout.java:2023) 
    at android.view.View.updateDisplayListIfDirty (View.java:20340) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at androidx.coordinatorlayout.widget.CoordinatorLayout.drawChild (CoordinatorLayout.java:1246) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.updateDisplayListIfDirty (View.java:20340) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.draw (View.java:21475) 
    at android.view.View.updateDisplayListIfDirty (View.java:20349) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.updateDisplayListIfDirty (View.java:20340) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.updateDisplayListIfDirty (View.java:20340) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.updateDisplayListIfDirty (View.java:20340) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.updateDisplayListIfDirty (View.java:20340) 
    at android.view.View.draw (View.java:21204) 
    at android.view.ViewGroup.drawChild (ViewGroup.java:4412) 
    at android.view.ViewGroup.dispatchDraw (ViewGroup.java:4171) 
    at android.view.View.draw (View.java:21475) 
    at com.android.internal.policy.DecorView.draw (DecorView.java:830) 
    at android.view.View.updateDisplayListIfDirty (View.java:20349) 
    at android.view.ThreadedRenderer.updateViewTreeDisplayList (ThreadedRenderer.java:575) 
    at android.view.ThreadedRenderer.updateRootDisplayList (ThreadedRenderer.java:581) 
    at android.view.ThreadedRenderer.draw (ThreadedRenderer.java:654) 
    at android.view.ViewRootImpl.draw (ViewRootImpl.java:3687) 
    at android.view.ViewRootImpl.performDraw (ViewRootImpl.java:3482) 
    at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2819) 
    at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1782) 
    at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7785) 
    at android.view.Choreographer$CallbackRecord.run (Choreographer.java:1031) 
    at android.view.Choreographer.doCallbacks (Choreographer.java:854) 
    at android.view.Choreographer.doFrame (Choreographer.java:789) 
    at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:1016) 
    at android.os.Handler.handleCallback (Handler.java:883) 
    at android.os.Handler.dispatchMessage (Handler.java:100) 
    at android.os.Looper.loop (Looper.java:224) 
    at android.app.ActivityThread.main (ActivityThread.java:7520) 
    at java.lang.reflect.Method.invoke (Method.java) 
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:539) 
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:950)
  </code></pre>
  <p>Device: Redmi K20 Pro</p>
  <p>Android version: 10</p>
  <p>I can't find this part of code in <a href="https://github.com/AndroidSDKSources/android-sdk-sources-for-api-level-29/blob/master/android/widget/Editor.java" rel="nofollow noreferrer">android sources</a>(well, seems it's Xiaomi modification)</p>
  <p>I found <a href="https://github.com/facebook/react-native/issues/27204" rel="nofollow noreferrer">same issue</a> in the React-Native community.</p>
  <p>Any ideas on how to solve it?</p>
  <p><strong>UPD:</strong> I got this crash on completely native app, without any crossplatform framework.</p>