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

Commit e8319618 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Adding dither to workspace scrim" into tm-qpr-dev

parents bd98aef4 9c00567d
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -126,8 +126,14 @@ public class SysUiScrim implements View.OnAttachStateChangeListener {
        mMaskHeight = ResourceUtils.pxFromDp(ALPHA_MASK_BITMAP_DP,
                view.getResources().getDisplayMetrics());
        mTopScrim = Themes.getAttrDrawable(view.getContext(), R.attr.workspaceStatusBarScrim);
        mBottomMask = mTopScrim == null ? null : createDitheredAlphaMask();
        mHideSysUiScrim = mTopScrim == null;
        if (mTopScrim != null) {
            mTopScrim.setDither(true);
            mBottomMask = createDitheredAlphaMask();
            mHideSysUiScrim = false;
        } else {
            mBottomMask = null;
            mHideSysUiScrim = true;
        }

        mDrawWallpaperScrim = FeatureFlags.ENABLE_WALLPAPER_SCRIM.get()
                && !Themes.getAttrBoolean(view.getContext(), R.attr.isMainColorDark)