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

Commit d30b36d3 authored by Romain Guy's avatar Romain Guy
Browse files

Fix NPE in YouTube.

Bug #3385339

Change-Id: Id7b307994e343cdb808161a7fae590536f04252e
parent b6110a1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4750,7 +4750,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
    }

    void performCollectViewAttributes(int visibility) {
        if ((visibility & VISIBILITY_MASK) == VISIBLE) {
        if ((visibility & VISIBILITY_MASK) == VISIBLE && mAttachInfo != null) {
            if ((mViewFlags & KEEP_SCREEN_ON) == KEEP_SCREEN_ON) {
                mAttachInfo.mKeepScreenOn = true;
            }