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

Skip to content
Commit cfc22c53 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Text handles positions' are correctly updated.

Bug 3510106

The CAB animation does not fire events, which does not update the
handles' positions.

The solution is to make the handle update their position before any
draw traversal, using an onPreDrawListener. The ScrollingPopupWindow
onScroll listener is no longer needed with this change. This is also
a more robust solution since other events (such as animations) may
change the TextView's position.

The cost is a recomputation of the Handles' positions at each redraw
which was not necessary with listeners. But as mentioned before, not
all possible events provide listeners or will in the future.

Change-Id: I0f46118de5f660a75d95eecb2cf987fcb4b3b322
parent ab7c3245
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment