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
This commit is contained in:
Chilun Huang
2022-07-11 15:19:16 +08:00
parent 46f79bda0c
commit ac57ddeb4c
@@ -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);
});
}