summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2016-03-16 17:22:27 -0700
committerYohei Yukawa <yukawa@google.com>2016-03-16 17:22:27 -0700
commitad150ee271d9a0d27289407bd023924e23ec2b26 (patch)
treec9a27df20318554ab6eab2ff7a1faeed5909f683 /tools/aapt2/java/JavaClassGenerator.cpp
parent7b574cb8a1a3d0943392f2bf7180687eff8448ae (diff)
Remove an unnecessary int to String conversion.
This is a safe refactoring to remove an unnecessary int to String conversion in TextServicesSettings. Settings.Secure.SELECTED_SPELL_CHECKER_SUBTYPE is a integer value that indicates subtype ID (or SpellCheckerSubtype#hashCode() if the subtype ID is not specified), and we can just rely on Settings.Secure#putIntForUser() rather than converting int to String by ourselves then pass it to Settings.Secure#putStringForUser(). Note that this change is still OK for existing users because Settings.Secure#putIntForUser() has been internally doing exactly the same thing. Bug: 27687531 Change-Id: Ibcf12746f1295c12bec095300ea7f6ced0a51d09
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions