Loading
[Magnifier-37] Hide handle when overlaps magnifier
In most cases, the magnifier will be displayed above the current line, so it will not overlap with the handle being dragged. However, when there is not enough space in the current surface for the magnifier to be displayed above the current line, the handle can overlap with the magnifier. Since the handle is implemented as a different window, we cannot really control the z ordering between them, and we noticed that the handle will be rendered over the magnifier, which looks bad. This CL better handles this situation, by hiding the handle when it would overlap with the magnifier. Bug: 76459199 Test: manual testing Test: atest FrameworksCoreTests:android.widget.TextViewActivityTest Test: atest FrameworksCoreTests:android.widget.TextViewTest Change-Id: Id5a17fd964360df6094f9e2680e5bcca886c4d2d