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

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

Merge "Fix invisible views issue in Launcher."

parents 8c409b7b a3496a9e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5468,9 +5468,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
    public void setAlpha(float alpha) {
        mAlpha = alpha;
        if (onSetAlpha((int) (alpha * 255))) {
            mPrivateFlags |= ALPHA_SET;
            // subclass is handling alpha - don't optimize rendering cache invalidation
            invalidate();
        } else {
            mPrivateFlags &= ~ALPHA_SET;
            invalidate(false);
        }
    }
+3 −1
Original line number Diff line number Diff line
@@ -2188,7 +2188,9 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
        
        float alpha = child.getAlpha();
        // Bail out early if the view does not need to be drawn
        if (alpha <= ViewConfiguration.ALPHA_THRESHOLD) return more;
        if (alpha <= ViewConfiguration.ALPHA_THRESHOLD && (child.mPrivateFlags & ALPHA_SET) == 0) {
            return more;
        }

        child.computeScroll();