diff options
author | Petar Šegina <psegina@google.com> | 2017-08-31 18:09:16 +0100 |
---|---|---|
committer | Petar Šegina <psegina@google.com> | 2017-09-11 15:41:12 +0100 |
commit | ba1b8566e4b621f0acee3eeca3c0053647bdf5ab (patch) | |
tree | 04ce06f27c631c3f36011a0579219f03595045ef /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 0a22778237dd0c05c588b06af6440869083b56fa (diff) |
Filter out empty and unnecessary rectangles
Layout::getSelection will sometimes give us rectangles which are
redundant - specifically, those with dimension zero and those that may
already be contained in some other rectangles. In order to keep the
smart select animation simple and in line with what the user would
visually expect, we remove these rectangles.
Test: manual - verify smart select animation over multiple lines
Test: bit FrameworksCoreTests:android.widget.SelectionActionModeHelperTest
Change-Id: Ia4406d9505366245609b44e3ec3743f84820ba0a
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions