diff --git a/quickstep/res/values/dimens.xml b/quickstep/res/values/dimens.xml index 43ea42ab34..2a246247c8 100644 --- a/quickstep/res/values/dimens.xml +++ b/quickstep/res/values/dimens.xml @@ -16,16 +16,22 @@ - 24dp - 12dp + 80dp + 40dp 48dp - -16dp + 16dp 2dp + 48dp + 16dp + + 48dp + 16dp + - 66dp - 16dp + 48dp + 12dp 8dp 16dp @@ -63,10 +69,6 @@ 8dp 3dp 0dp - 132dp - 60dp - 200dp - 100dp 10dp diff --git a/quickstep/src/com/android/quickstep/BaseActivityInterface.java b/quickstep/src/com/android/quickstep/BaseActivityInterface.java index 7a144ba4ba..7c1d9fadbb 100644 --- a/quickstep/src/com/android/quickstep/BaseActivityInterface.java +++ b/quickstep/src/com/android/quickstep/BaseActivityInterface.java @@ -33,6 +33,7 @@ import android.content.Context; import android.content.res.Resources; import android.graphics.Rect; import android.os.Build; +import android.view.Gravity; import android.view.MotionEvent; import androidx.annotation.Nullable; @@ -53,6 +54,7 @@ import com.android.quickstep.util.ActivityInitListener; import com.android.quickstep.util.AnimatorControllerWithResistance; import com.android.quickstep.util.SplitScreenBounds; import com.android.quickstep.views.RecentsView; +import com.android.quickstep.views.TaskView; import com.android.systemui.shared.recents.model.ThumbnailData; import com.android.systemui.shared.system.RemoteAnimationTargetCompat; @@ -197,33 +199,23 @@ public abstract class BaseActivityInterfacegetOverviewPanel().startHome(); } - - @Override - protected float getExtraSpace(Context context, DeviceProfile dp, - PagedOrientationHandler orientationHandler) { - return context.getResources().getDimensionPixelSize(R.dimen.overview_actions_height); - } } diff --git a/quickstep/src/com/android/quickstep/LauncherActivityInterface.java b/quickstep/src/com/android/quickstep/LauncherActivityInterface.java index 3f3e5ada68..7efbfb8503 100644 --- a/quickstep/src/com/android/quickstep/LauncherActivityInterface.java +++ b/quickstep/src/com/android/quickstep/LauncherActivityInterface.java @@ -19,13 +19,10 @@ import static com.android.launcher3.LauncherState.BACKGROUND_APP; import static com.android.launcher3.LauncherState.NORMAL; import static com.android.launcher3.LauncherState.OVERVIEW; import static com.android.launcher3.anim.Interpolators.LINEAR; -import static com.android.quickstep.SysUINavigationMode.getMode; import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_IME_SHOWING; import android.content.Context; -import android.content.res.Resources; import android.graphics.Rect; -import android.util.Log; import android.view.MotionEvent; import androidx.annotation.Nullable; @@ -36,13 +33,11 @@ import com.android.launcher3.DeviceProfile; import com.android.launcher3.Launcher; import com.android.launcher3.LauncherInitListener; import com.android.launcher3.LauncherState; -import com.android.launcher3.R; import com.android.launcher3.anim.PendingAnimation; import com.android.launcher3.statehandlers.DepthController; import com.android.launcher3.statehandlers.DepthController.ClampedDepthProperty; import com.android.launcher3.statemanager.StateManager; import com.android.launcher3.taskbar.TaskbarController; -import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.touch.PagedOrientationHandler; import com.android.quickstep.GestureState.GestureEndTarget; import com.android.quickstep.SysUINavigationMode.Mode; @@ -262,27 +257,6 @@ public final class LauncherActivityInterface extends } } - @Override - protected float getExtraSpace(Context context, DeviceProfile dp, - PagedOrientationHandler orientationHandler) { - Resources res = context.getResources(); - //TODO: this needs to account for the swipe gesture height and accessibility - // UI when shown. - float actionsBottomMargin = 0; - if (!dp.isVerticalBarLayout()) { - if (getMode(context) == Mode.THREE_BUTTONS) { - actionsBottomMargin = res.getDimensionPixelSize( - R.dimen.overview_actions_bottom_margin_three_button); - } else { - actionsBottomMargin = res.getDimensionPixelSize( - R.dimen.overview_actions_bottom_margin_gesture); - } - } - float actionsHeight = actionsBottomMargin - + res.getDimensionPixelSize(R.dimen.overview_actions_height); - return actionsHeight; - } - @Override void onOverviewServiceBound() { final BaseQuickstepLauncher activity = getCreatedActivity(); diff --git a/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java b/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java index 215f05ae4c..188efadd45 100644 --- a/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java +++ b/quickstep/src/com/android/quickstep/util/RecentsOrientedState.java @@ -23,9 +23,9 @@ import static android.view.Surface.ROTATION_180; import static android.view.Surface.ROTATION_270; import static android.view.Surface.ROTATION_90; -import static com.android.launcher3.util.SettingsCache.ROTATION_SETTING_URI; import static com.android.launcher3.states.RotationHelper.ALLOW_ROTATION_PREFERENCE_KEY; import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR; +import static com.android.launcher3.util.SettingsCache.ROTATION_SETTING_URI; import static java.lang.annotation.RetentionPolicy.SOURCE; @@ -47,11 +47,12 @@ import com.android.launcher3.DeviceProfile; import com.android.launcher3.InvariantDeviceProfile; import com.android.launcher3.R; import com.android.launcher3.Utilities; -import com.android.launcher3.util.SettingsCache; import com.android.launcher3.testing.TestProtocol; import com.android.launcher3.touch.PagedOrientationHandler; +import com.android.launcher3.util.SettingsCache; import com.android.launcher3.util.WindowBounds; import com.android.quickstep.BaseActivityInterface; +import com.android.quickstep.views.TaskView; import java.lang.annotation.Retention; import java.util.function.IntConsumer; @@ -367,8 +368,12 @@ public final class RecentsOrientedState implements SharedPreferences.OnSharedPre */ public float getFullScreenScaleAndPivot(Rect taskView, DeviceProfile dp, PointF outPivot) { Rect insets = dp.getInsets(); - float fullWidth = dp.widthPx - insets.left - insets.right; - float fullHeight = dp.heightPx - insets.top - insets.bottom; + float fullWidth = dp.widthPx; + float fullHeight = dp.heightPx; + if (TaskView.CLIP_STATUS_AND_NAV_BARS) { + fullWidth -= insets.left + insets.right; + fullHeight -= insets.top + insets.bottom; + } if (dp.isMultiWindowMode) { WindowBounds bounds = SplitScreenBounds.INSTANCE.getSecondaryWindowBounds(mContext); diff --git a/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java b/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java index 4c21745de8..36a5f036a9 100644 --- a/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java +++ b/quickstep/src/com/android/quickstep/views/TaskThumbnailView.java @@ -212,13 +212,6 @@ public class TaskThumbnailView extends View implements PluginListener