commit | 99b55fa6a5d232153ba07fc580091ec8e1e8d42e | [log] [tgz] |
---|---|---|
author | Nikita Dubrovsky <dubrovsky@google.com> | Sun Jan 12 20:57:51 2020 -0800 |
committer | Nikita Dubrovsky <dubrovsky@google.com> | Mon Jan 13 21:54:20 2020 -0800 |
tree | f74ac72f36a77b2735ce35c8970bebef70a46898 | |
parent | 1f78b11bbf941164148967af6d6e3ca3c8707bc6 [diff] |
Fix NPE in InsertionPointCursorController.onTouchEvent Calls to SelectionModifierCursorController must be guarded by hasSelectionController() because it's possible to have a TextView with an Editor but no selection controller if the TextView is configured to have non-selectable text. Bug: 147366705 Bug: 145535274 Bug: 143852764 Test: Manual and unit test atest FrameworksCoreTests:EditorCursorDragTest Change-Id: I7fdec754e6fa51561b08fab024ea672c43f2c8f5