Make hasTransientState be true only if user created selection is active.
Previously, hasTransientState returned true even when TextView has a selection that hasn't been created by the user. This unnecessarily prevents the TextView from being recycled. This issue was introduced by Ib454b0fbbc2c2f8d198, which fixes that setHasTransientState(true) is not always coupled with setHasTransientState(false). With this CL: hasTransientState will get true when selection action mode is started. hasTransientState will get false when selection is removed. Note that hasTransientState intentionally continues to be true when selection action mode is terminated with preserving selection. Bug: 27913323 Change-Id: I960ddfd7221caeb676c23926af06a8a415dec288
Loading
Please register or sign in to comment