Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a crash in TextView#onSaveInstanceState
On Android JB, TextView#onSaveInstanceState() calls new SpannableString() which causes a crash. The reason is that SpannableStringInternal#setSpan() eventually calls ChangeWatcher#onSpanChanged() and this causes onSelectionChanged(). However, the selection values remain the same, so we can simply ignore the call when the values did not change. BUG=760013 (cherry picked from commit acfc998) Change-Id: I907afd43dae36513b8015572a5568060d8b545b3 Reviewed-on: https://chromium-review.googlesource.com/644495 Commit-Queue: Changwan Ryu <[email protected]> Reviewed-by: Ted Choc <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#499100} Reviewed-on: https://chromium-review.googlesource.com/653211 Reviewed-by: Changwan Ryu <[email protected]> Cr-Commit-Position: refs/branch-heads/3202@{crosswalk-project#53} Cr-Branched-From: fa6a5d8-refs/heads/master@{#499098}
- Loading branch information