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

Commit 6027a64b authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

[automerger] Only rotate screenshots taken in full-screen mode am: dcb74be7

Change-Id: I1f025f459eb16a4bf473973f29dcede5b9b1248a
parents 1465a23e dcb74be7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.quickstep.views;

import static com.android.systemui.shared.system.WindowManagerWrapper.WINDOWING_MODE_FULLSCREEN;

import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Bitmap;
@@ -206,7 +208,8 @@ public class TaskThumbnailView extends View {
                // Rotate the screenshot if not in multi-window mode
                rotate = FeatureFlags.OVERVIEW_USE_SCREENSHOT_ORIENTATION &&
                        configuration.orientation != mThumbnailData.orientation &&
                        !mActivity.isInMultiWindowModeCompat();
                        !mActivity.isInMultiWindowModeCompat() &&
                        mThumbnailData.windowingMode == WINDOWING_MODE_FULLSCREEN;
                // Scale the screenshot to always fit the width of the card.
                thumbnailScale = rotate
                        ? getMeasuredWidth() / thumbnailHeight