title: PreferenceManager getDefaultSharedPreferences deprecated in Android Q
body: <p><code>PreferenceManager getDefaultSharedPreferences</code> is deprecated in <a href="https://en.wikipedia.org/wiki/Android_10" rel="noreferrer">Android 10</a>. How do I replace it?</p>