Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5ba3812 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE crash in TextToSpeechSettings" am: 6672e378 am: 451ced2f...

Merge "Fix NPE crash in TextToSpeechSettings" am: 6672e378 am: 451ced2f am: 1b69e6b8 am: f0c25090 am: fc899d5e

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2208995



Change-Id: I4129c2fce49101a1d569b2cfb91b3684a31fcc46
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents c9a792e5 fc899d5e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -228,7 +228,9 @@ public class TextToSpeechSettings extends SettingsPreferenceFragment
        // them to resize, which results in the recyclerview smoothly animating them at inopportune
        // times. Disable the animation so widgets snap to their positions rather than sliding
        // around while the user is interacting with it.
        if (getListView().getItemAnimator() != null) {
            getListView().getItemAnimator().setMoveDuration(0);
        }

        if (mTts == null || mCurrentDefaultLocale == null) {
            return;