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

Commit 2c313f0e authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when clearing preference screen" into nyc-dev

parents 11cd08a2 1cb12bbd
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);
        }