Merge "Use device profile width instead of drag layer width for overview translation" into ub-launcher3-qt-dev

This commit is contained in:
Tony Wickham
2019-05-13 21:26:09 +00:00
committed by Android (Google) Code Review
@@ -194,7 +194,7 @@ public class UiFactory extends RecentsUiFactory {
public static ScaleAndTranslation getOverviewScaleAndTranslationForNormalState(Launcher l) {
if (SysUINavigationMode.getMode(l) == Mode.NO_BUTTON) {
float offscreenTranslationX = l.getDragLayer().getWidth()
float offscreenTranslationX = l.getDeviceProfile().widthPx
- l.getOverviewPanel().getPaddingStart();
return new ScaleAndTranslation(1f, offscreenTranslationX, 0f);
}