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

Commit b808eb04 authored by Sunny Shao's avatar Sunny Shao
Browse files

Fix the NPE in the AnimationController

Add the null checking in onBindViewHolder

Fixes: 144099781
Test: compilation
Change-Id: Iafb8f758d7d71ce9fa67f4ad94d5a8a417ad674a
parent 38701ed7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -123,8 +123,10 @@ public class VideoPreference extends Preference {
            layout.setLayoutParams(new LinearLayout.LayoutParams(
                    LinearLayout.LayoutParams.MATCH_PARENT, mHeight));
        }
        if (mAnimationController != null) {
            mAnimationController.attachView(mVideo, mPreviewImage, mPlayButton);
        }
    }

    @Override
    public void onDetached() {