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 authored and Android (Google) Code Review committed 2019-05-13 21:26:09 +00:00
commit 5d5db96bb8
1 file changed
+1 -1
@@ -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);
}