OSDN Git Service

Fix crash on calling removeSelection with showing selection handlers
authorYoshiki Iguchi <yoshiki@google.com>
Thu, 15 Oct 2015 04:34:41 +0000 (13:34 +0900)
committerYoshiki Iguchi <yoshiki@google.com>
Thu, 22 Oct 2015 07:28:47 +0000 (07:28 +0000)
commit9582e151964be60457d4abd712857fb1e8a4586d
tree340d79f25a8c093c05095f5f0953ee4d2e6ae91b
parent809dcade9906001f6aa51a68aa783e20bb1d7c0d
Fix crash on calling removeSelection with showing selection handlers

A crash occured on updating after calling removeSelection with showing
selection handlers. This was because some selection-handler code didn't
consider the case the selection index was -1 (-1 means there is no selection).
This patch fixes this crash.

Bug: 23299977
Change-Id: I736d315e073f773aec597522203015205a8da42b
core/java/android/widget/Editor.java