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

Commit 68ead5c2 authored by Tony Wickham's avatar Tony Wickham Committed by Cherrypicker Worker
Browse files

Remove unused variables in FullscreenDrawParams and PreviewPositionHelper

Flag: none
Test: FullscreenDrawParamsTest
Bug: 293224095
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:09407ebfbf50f949cce62135a3f4c1bf810af75f)
Merged-In: I978113003cc26d40d23b508935d18a2dd7913979
Change-Id: I978113003cc26d40d23b508935d18a2dd7913979
parent a509b5b2
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