summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorSiyamed Sinir <siyamed@google.com>2016-02-05 16:08:59 -0800
committerSiyamed Sinir <siyamed@google.com>2016-02-08 22:23:25 +0000
commit027711904ba478bc89a66a749d4d00db067223ec (patch)
tree6bc29c014196cb8d189407039a84e406dae5543a /tools/aapt2/java/JavaClassGenerator.cpp
parentc08268e647f89f8ddfd9c6fb1f6ac4f99b13b9cf (diff)
Do not save TextView text when freezesText is false
Currently TextView state is saved whenever selection is set even if freezesText is false. This causes inconsistencies with the described behavior for the attribute. This CL updates the behavior as: - Always save the text for EditText - Always save the selection if there are any. - Do not save the text for TextView if freezesText is false. - During onRestoreInstanceState if selection is out of the text boundaries, do not restore the selection. Bug: 22076905 Change-Id: I5e05d343e752a7d106c8881993e4d95ae21a38ce (cherry picked from commit 8535836673c801effce097c54f55814ef88448e7)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions