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

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

Fix invisible views issue in Launcher.

Change-Id: Ic7cb8f418b5879110eaea5a9c5fdb4f237ca4cab
parent c00972bb
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();