Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/PreviewPositionHelper.java +2 −3 Original line number Diff line number Diff line Loading @@ -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; Loading packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/MediaProjectionTaskView.kt +0 −12 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/PreviewPositionHelper.java +2 −3 Original line number Diff line number Diff line Loading @@ -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; Loading
packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/MediaProjectionTaskView.kt +0 −12 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading