Revert "Update animations for TM-QPR: Overview > OverviewSplitSelect transition"
This reverts commit a50bb39048.
Reason for revert: Causes a P1 bug (b/241165022).
Fixes: 241165022
Bug: 236760307
Change-Id: Icc080d9a37e26d70d0f4cf846a4fd39df3b71625
This commit is contained in:
@@ -440,7 +440,7 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler {
|
||||
public void setSplitInstructionsParams(View out, DeviceProfile dp, int splitInstructionsHeight,
|
||||
int splitInstructionsWidth, int threeButtonNavShift) {
|
||||
out.setPivotX(0);
|
||||
out.setPivotY(splitInstructionsHeight);
|
||||
out.setPivotY(0);
|
||||
out.setRotation(getDegreesRotated());
|
||||
int distanceToEdge = out.getResources().getDimensionPixelSize(
|
||||
R.dimen.split_instructions_bottom_margin_phone_landscape);
|
||||
@@ -448,8 +448,8 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler {
|
||||
int insetCorrectionX = dp.getInsets().left;
|
||||
// Center the view in case of unbalanced insets on top or bottom of screen
|
||||
int insetCorrectionY = (dp.getInsets().bottom - dp.getInsets().top) / 2;
|
||||
out.setTranslationX(distanceToEdge - insetCorrectionX);
|
||||
out.setTranslationY(((-splitInstructionsHeight - splitInstructionsWidth) / 2f)
|
||||
out.setTranslationX(splitInstructionsHeight + distanceToEdge - insetCorrectionX);
|
||||
out.setTranslationY(((splitInstructionsHeight - splitInstructionsWidth) / 2f)
|
||||
+ insetCorrectionY);
|
||||
FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) out.getLayoutParams();
|
||||
// Setting gravity to LEFT instead of the lint-recommended START because we always want this
|
||||
|
||||
Reference in New Issue
Block a user