This fixes a crash that happened because mStartOffset could point to an invalid offset after changing the text. Bug: 21178876 Change-Id: I2fbb5ea3d6b8c5a97ca7248116b58ead673a8b0a
eb4bd19e