title: EditTextPreference not showing numeric keyboard after migrating project to androidx
body: <p>After migrating my project to AndroidX using the <code>Migrate to AndroidX...</code> functionality provided by Android Studio and having made changes to my dependencies accordingly to have everything running like it is supposed to, I have encountered a minor problem which I haven't been able to resolve. </p>
  
  <p>To set a device number in my application I used an EditTextPreference like the following defined in my <code>pref_screen.xml</code> which is set in a PreferenceFragmentCompat class with 
      <code>setPreferencesFromResource(R.xml.pref_screen, string)</code>: </p>
  
  <pre><code>&lt;EditTextPreference
              android:icon="@drawable/ic_perm_device_information_black_24dp"
              android:inputType="number"
              android:key="change_device_id"
              android:maxLines="1"
              android:selectAllOnFocus="true"
              android:singleLine="true"
              android:summary="@string/settings_device_id"
              android:title="@string/pref_title_change_device_id" /&gt;
  </code></pre>
  
  <p>It used to show a numeric keyboard to change the value but after migrating to AndroidX it keeps showing a normal keyboard as shown in the image below. I tried changing the inputType and defining the decimals in xml but to no avail. Has something changed to set the inputType for the keyboard after migrating to AndroidX or am I missing something obvious?</p>
  
  <pre><code>android:inputType="numberDecimal"
  android:digits="0123456789"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/WX7kv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WX7kv.png" alt="EditTextPreference keyboard"></a></p>