Loading quickstep/src/com/android/launcher3/taskbar/TaskbarBackgroundRenderer.kt +4 −2 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import com.android.launcher3.icons.GraphicsUtils.setColorAlphaBound import com.android.launcher3.taskbar.TaskbarPinningController.Companion.PINNING_PERSISTENT import com.android.launcher3.taskbar.TaskbarPinningController.Companion.PINNING_TRANSIENT import com.android.launcher3.util.DisplayController import kotlin.math.min /** Helps draw the taskbar background, made up of a rectangle plus two inverted rounded corners. */ class TaskbarBackgroundRenderer(private val context: TaskbarActivityContext) { Loading Loading @@ -153,9 +154,10 @@ class TaskbarBackgroundRenderer(private val context: TaskbarActivityContext) { // Draw the background behind taskbar content. canvas.drawRect(0f, 0f, canvas.width.toFloat(), persistentTaskbarHeight, paint) } else { canvas.translate(0f, canvas.height - maxPersistentTaskbarHeight) val persistentTaskbarHeight = min(maxPersistentTaskbarHeight, backgroundHeight) canvas.translate(0f, canvas.height - persistentTaskbarHeight) // Draw the background behind taskbar content. canvas.drawRect(0f, 0f, canvas.width.toFloat(), maxPersistentTaskbarHeight, paint) canvas.drawRect(0f, 0f, canvas.width.toFloat(), persistentTaskbarHeight, paint) } // Draw the inverted rounded corners above the taskbar. Loading Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarBackgroundRenderer.kt +4 −2 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import com.android.launcher3.icons.GraphicsUtils.setColorAlphaBound import com.android.launcher3.taskbar.TaskbarPinningController.Companion.PINNING_PERSISTENT import com.android.launcher3.taskbar.TaskbarPinningController.Companion.PINNING_TRANSIENT import com.android.launcher3.util.DisplayController import kotlin.math.min /** Helps draw the taskbar background, made up of a rectangle plus two inverted rounded corners. */ class TaskbarBackgroundRenderer(private val context: TaskbarActivityContext) { Loading Loading @@ -153,9 +154,10 @@ class TaskbarBackgroundRenderer(private val context: TaskbarActivityContext) { // Draw the background behind taskbar content. canvas.drawRect(0f, 0f, canvas.width.toFloat(), persistentTaskbarHeight, paint) } else { canvas.translate(0f, canvas.height - maxPersistentTaskbarHeight) val persistentTaskbarHeight = min(maxPersistentTaskbarHeight, backgroundHeight) canvas.translate(0f, canvas.height - persistentTaskbarHeight) // Draw the background behind taskbar content. canvas.drawRect(0f, 0f, canvas.width.toFloat(), maxPersistentTaskbarHeight, paint) canvas.drawRect(0f, 0f, canvas.width.toFloat(), persistentTaskbarHeight, paint) } // Draw the inverted rounded corners above the taskbar. Loading