Merge "ShareTargets animations and styling." into sc-dev am: 1408c6459c

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13555898

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3845b47ad61b0d7035886b548aee47ea0e38235b
This commit is contained in:
Sreyas Rangaraju authored and Automerger Merge Worker committed 2021-02-23 22:10:33 +00:00
commit facd274f18
1 file changed
+9 -3
@@ -189,6 +189,14 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo
/** Updates vertical margins for different navigation mode or configuration changes. */
public void updateVerticalMargin(Mode mode) {
LayoutParams actionParams = (LayoutParams) findViewById(
R.id.action_buttons).getLayoutParams();
actionParams.setMargins(
actionParams.leftMargin, actionParams.topMargin, actionParams.rightMargin,
getBottomVerticalMargin(mode));
}
protected int getBottomVerticalMargin(Mode mode) {
int bottomMargin;
int orientation = getResources().getConfiguration().orientation;
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
@@ -201,8 +209,6 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo
.getDimensionPixelSize(R.dimen.overview_actions_bottom_margin_gesture);
}
bottomMargin += mInsets.bottom;
LayoutParams params = (LayoutParams) getLayoutParams();
params.setMargins(
params.leftMargin, params.topMargin, params.rightMargin, bottomMargin);
return bottomMargin;
}
}