Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac57ddeb authored by Chilun Huang's avatar Chilun Huang
Browse files

Workaround to return 1/3 of the position

Some devices in portrait mode have the same symptoms as b/234322284.
Simply return 1/3 of the position like the X axis to solve the problem.

Bug: 238202110
Test: atest Launcher3Tests:TaplTestsLauncher3#testAddDeleteShortcutOnHotseat
Change-Id: Ic7d3756cfbda6673a62b266c6093745b8311e6ac
parent 46f79bda
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ public class TestInformationHandler implements ResourceBasedOverride {
                            /* spanX= */ 1, /* spanY= */ 1);
                    // TODO(b/234322284): return the real center point.
                    return new Point(cellRect.left + (cellRect.right - cellRect.left) / 3,
                            cellRect.centerY());
                            cellRect.top + (cellRect.bottom - cellRect.top) / 3);
                });
            }