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

Commit a6701517 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Remove unused variables in FullscreenDrawParams and PreviewPositionHelper" into main

parents 4cc92f8d 68ead5c2
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -59,9 +59,8 @@ public class PreviewPositionHelper {
     * Updates the matrix based on the provided parameters
     */
    public void updateThumbnailMatrix(Rect thumbnailBounds, ThumbnailData thumbnailData,
            int canvasWidth, int canvasHeight, int screenWidthPx, int screenHeightPx,
            int taskbarSize, boolean isLargeScreen,
            int currentRotation, boolean isRtl) {
            int canvasWidth, int canvasHeight, boolean isLargeScreen, int currentRotation,
            boolean isRtl) {
        boolean isRotated = false;
        boolean isOrientationDifferent;

+0 −12
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ import android.view.View
import android.view.WindowManager
import androidx.core.content.getSystemService
import androidx.core.content.res.use
import com.android.internal.R as AndroidR
import com.android.systemui.R
import com.android.systemui.mediaprojection.appselector.data.RecentTask
import com.android.systemui.shared.recents.model.ThumbnailData
@@ -147,25 +146,14 @@ constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
        previewRect.set(0, 0, thumbnailData.thumbnail.width, thumbnailData.thumbnail.height)

        val currentRotation: Int = display.rotation
        val displayWidthPx = windowMetrics.bounds.width()
        val displayHeightPx = windowMetrics.bounds.height()
        val isRtl = layoutDirection == LAYOUT_DIRECTION_RTL
        val isLargeScreen = isLargeScreen(context)
        val taskbarSize =
            if (isLargeScreen) {
                resources.getDimensionPixelSize(AndroidR.dimen.taskbar_frame_height)
            } else {
                0
            }

        previewPositionHelper.updateThumbnailMatrix(
            previewRect,
            thumbnailData,
            measuredWidth,
            measuredHeight,
            displayWidthPx,
            displayHeightPx,
            taskbarSize,
            isLargeScreen,
            currentRotation,
            isRtl