summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Maryam Dehaini <mdehaini@google.com> 2023-10-02 11:23:24 -0700
committer Maryam Dehaini <mdehaini@google.com> 2023-10-28 00:43:34 +0000
commit52d5f9cc259325ae26dab0063f3afccd7d068abf (patch)
tree4c4c1e381781e5116ae8467be24f11f61a4378ab /libs/androidfw/ObbFile.cpp
parentab6db579587fffb079468462c5017cffe76f46e1 (diff)
Use onTouchListener to listen for long press on maximize window button
Currently, an onLongPressListener is being used in order to check if a user long presses the maximize menu button. The issue with this approach is that we cannot drag the window from the maximize button. So, if a window is small or is positioned so that only the right edge of the caption is visible, it would be very hard for the user to drag the task without accidentally maximizing or opening the maximize window. In this approach, we use the onTouchListener instead to check if there is a long press. This way, we can allow the user to drag the task around if they begin a drag from the maximize menu button and redirect the touch to the onClickListener or onTouchListener depending on how long they are holding the button if the task is not dragged. Bug: 298267890 Test: Drag a task using maximize menu button Change-Id: I96eaba90b137f65cf201654433a0d12ed6fe69bb
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions