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

Commit 782b7ca9 authored by Vinit Nayak's avatar Vinit Nayak Committed by Android (Google) Code Review
Browse files

Merge "Use activity rotation to compute delta" into ub-launcher3-master

parents 6351eb47 b6465b21
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -48,3 +48,6 @@
-dontwarn android.view.**
-dontwarn android.os.**
-dontwarn android.graphics.**

# Ignore warnings for hidden utility classes referenced from the shared lib
-dontwarn com.android.internal.util.**
 No newline at end of file
+3 −1
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ import com.android.systemui.plugins.OverviewScreenshotActions;
import com.android.systemui.plugins.PluginListener;
import com.android.systemui.shared.recents.model.Task;
import com.android.systemui.shared.recents.model.ThumbnailData;
import com.android.systemui.shared.system.ConfigurationCompat;

/**
 * A task in the Recents view.
@@ -357,7 +358,8 @@ public class TaskThumbnailView extends View implements PluginListener<OverviewSc

            final float thumbnailScale;
            int thumbnailRotation = mThumbnailData.rotation;
            int currentRotation = getDisplay() != null ? getDisplay().getRotation() : 0;
            int currentRotation = ConfigurationCompat.getWindowConfigurationRotation(
                    getResources().getConfiguration());
            int deltaRotate = getRotationDelta(currentRotation, thumbnailRotation);
            // Landscape vs portrait change
            boolean windowingModeSupportsRotation = !mActivity.isInMultiWindowMode()