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

Commit 1fbb98e0 authored by Maryam Dehaini's avatar Maryam Dehaini
Browse files

Set task corner radius to match spec

The task bar sets the corner radius of maximized tasks in desktop
windowing. This change updates the corner radius to match the most
recent spec.

Bug: 369592605
Test: manual testing
Flag: EXEMPT bugfix
Change-Id: I87bbaaf262f30e95fe1760d2dad51a890efca4c1
parent b9e5421a
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import android.graphics.Paint
import android.graphics.Path
import android.graphics.RectF
import com.android.app.animation.Interpolators
import com.android.internal.policy.ScreenDecorationsUtils
import com.android.launcher3.R
import com.android.launcher3.Utilities
import com.android.launcher3.Utilities.mapRange
@@ -98,12 +97,9 @@ class TaskbarBackgroundRenderer(private val context: TaskbarActivityContext) {
            shadowAlpha = LIGHT_THEME_SHADOW_ALPHA
        }

        if (context.areDesktopTasksVisible()) {
            fullCornerRadius = ScreenDecorationsUtils.getWindowCornerRadius(context)
            cornerRadius = fullCornerRadius
        } else {
        fullCornerRadius = context.cornerRadius.toFloat()
        cornerRadius = fullCornerRadius
        if (!context.areDesktopTasksVisible()) {
            setCornerRoundness(MAX_ROUNDNESS)
        }
    }