title: Crash in android.widget.Editor. android.content.res.Resources$NotFoundException
body: <p>I am getting a bunch of crash reports (from analytics) that indicates <code>android.widget.Editor</code> is crashing due to missing recourses related to the cursor!</p>
  
  <p>I looked up the resource ID in <code>R.java</code> and it is defined there and points to <code>abc_text_select_handle_middle_mtrl_light</code> (not my own resources).</p>
  
  <p>I could not repro the crash locally but it is the most occurring crash in our app right now. I assume it only crashes on certain devices and that is why I couldn't repro. We have seen it on HUAWEI P7-L01, Galaxy Core2, CHM-U01, Galaxy J1 Ace, ...</p>
  
  <p>Any suggestion for a workaround is appreciated.</p>
  
  <p>Layout:</p>
  
  <pre><code>&lt;android.widget.EditText
      android:id="@+id/profile_name_input"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginLeft="16dp"
      android:layout_marginRight="16dp"
      android:background="@color/foreground"
      android:gravity="center"
      android:inputType="textEmailAddress"
      android:maxLength="10"
      android:padding="10dp"
      android:textAlignment="center"/&gt;
  </code></pre>
  
  <p>Stacktrace:</p>
  
  <pre><code>android.content.res.Resources.getValue (Resources.java:1182)
  android.content.res.Resources.getDrawable (Resources.java:757)
  android.widget.Editor$InsertionPointCursorController.getHandle (Editor.java:3808)
  android.widget.Editor$InsertionPointCursorController.show (Editor.java:3786)
  android.widget.Editor.showInsertionController (Editor.java:4477)
  android.widget.Editor.showInsertionController (Editor.java:4471)
  android.widget.Editor.onTouchUpEvent (Editor.java:1686)
  android.widget.TextView.onTouchEvent (TextView.java:8166)
  android.view.View.dispatchTouchEvent (View.java:7804)
  android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2324)
  android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2027)
  android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2324)
  android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2027)
  android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2324)
  android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2027)
  android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2324)
  android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2027)
  android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2324)
  android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2027)
  android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2324)
  android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2027)
  android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2324)
  android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2027)
  android.view.ViewGroup.dispatchTransformedTouchEvent (ViewGroup.java:2324)
  android.view.ViewGroup.dispatchTouchEvent (ViewGroup.java:2027)
  com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent (PhoneWindow.java:2137)
  com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1569)
  android.app.Activity.dispatchTouchEvent (Activity.java:2519)
  android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent (WindowCallbackWrapper.java:68)
  com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent (PhoneWindow.java:2085)
  android.view.View.dispatchPointerEvent (View.java:7995)
  android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent (ViewRootImpl.java:4568)
  android.view.ViewRootImpl$ViewPostImeInputStage.onProcess (ViewRootImpl.java:4439)
  android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:3977)
  android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4027)
  android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:3996)
  android.view.ViewRootImpl$AsyncInputStage.forward (ViewRootImpl.java:4103)
  android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4004)
  android.view.ViewRootImpl$AsyncInputStage.apply (ViewRootImpl.java:4160)
  android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:3977)
  android.view.ViewRootImpl$InputStage.onDeliverToNext (ViewRootImpl.java:4027)
  android.view.ViewRootImpl$InputStage.forward (ViewRootImpl.java:3996)
  android.view.ViewRootImpl$InputStage.apply (ViewRootImpl.java:4004)
  android.view.ViewRootImpl$InputStage.deliver (ViewRootImpl.java:3977)
  android.view.ViewRootImpl.deliverInputEvent (ViewRootImpl.java:6300)
  android.view.ViewRootImpl.doProcessInputEvents (ViewRootImpl.java:6280)
  android.view.ViewRootImpl.enqueueInputEvent (ViewRootImpl.java:6234)
  android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent (ViewRootImpl.java:6439)
  android.view.InputEventReceiver.dispatchInputEvent (InputEventReceiver.java:185)
  android.os.MessageQueue.nativePollOnce (MessageQueue.java)
  android.os.MessageQueue.next (MessageQueue.java:138)
  android.os.Looper.loop (Looper.java:150)
  android.app.ActivityThread.main (ActivityThread.java:5551)
  java.lang.reflect.Method.invokeNative (Method.java)
  java.lang.reflect.Method.invoke (Method.java:515)
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:914)
  com.android.internal.os.ZygoteInit.main (ZygoteInit.java:730)
  dalvik.system.NativeStart.main (NativeStart.java)
  </code></pre>
  
  <p>styles:</p>
  
  <pre><code>&lt;resources&gt;
      &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
          &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AppTheme.NoActionBar"&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="android:windowFullscreen"&gt;true&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AppTheme.NoActionBar.FullScreenTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
          &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="android:windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="android:windowFullscreen"&gt;true&lt;/item&gt;
          &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /&gt;
  
      &lt;style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /&gt;
  
      &lt;style name="MyDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert"&gt;
          &lt;item name="android:windowFrame"&gt;@null&lt;/item&gt;
          &lt;item name="android:windowBackground"&gt;@android:color/transparent&lt;/item&gt;
          &lt;item name="android:background"&gt;#4f92ac&lt;/item&gt;
          &lt;item name="colorPrimary"&gt;#FFFFFF&lt;/item&gt;
          &lt;item name="colorAccent"&gt;#FFFFFF&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>