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

Commit f5b27e35 authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in YouTube. Bug #3385339" into honeycomb

parents 8b557459 d30b36d3
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;
            }