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

Commit 1cb12bbd authored by Jason Monk's avatar Jason Monk
Browse files

Fix crash when clearing preference screen

Bug: 27892359
Change-Id: I96cd167e8173bf0345c3e186fa11c2e613b63e6f
parent f19001f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF

    @Override
    public void setPreferenceScreen(PreferenceScreen preferenceScreen) {
        if (!preferenceScreen.isAttached()) {
        if (preferenceScreen != null && !preferenceScreen.isAttached()) {
            // Without ids generated, the RecyclerView won't animate changes to the preferences.
            preferenceScreen.setShouldUseGeneratedIds(mAnimationAllowed);
        }