Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimize EditText Spans 1/9: Fix precedence (facebook#36543)
Summary: Pull Request resolved: facebook#36543 This is part of a series of changes to minimize the number of spans committed to EditText, as a mitigation for platform issues on Samsung devices. See this [GitHub thread]( facebook#35936 (comment)) for greater context on the platform behavior. We cache the backing EditText span on text change to later measure. To measure outside of a TextInput we need to restore any spans we removed. Spans may overlap, so base attributes should be behind everything else. The logic here for dealing with precedence is incorrect, and we should instead accomplish this by twiddling with the `SPAN_PRIORITY` bits. Changelog: [Android][Fixed] - Minimize Spans 1/N: Fix precedence Differential Revision: https://internalfb.com/D44240779 fbshipit-source-id: 5a11f2f40de54d2d813d4fa3dae8d21f1fe8f08d
- Loading branch information