summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2017-11-14 19:20:07 -0800
committerRoozbeh Pournader <roozbeh@google.com>2017-11-15 16:19:35 -0800
commit2e97386d9db1616134d9c76d19563028ffdcc66e (patch)
treefee7579100699cb8423a9160163f917151185604 /tools/aapt2/java/JavaClassGenerator.cpp
parentfcd996cc36cd45ad45b0fb634308d776f9647c03 (diff)
Drop the second unit from elapsed time if zero
Previously, we could get formatted strings like "1h 0min" which is unnecessarily complex for users. Replace such cases with "1 h" if the second unit is zero. Fixes: 65426298 Test: bit FrameworksCoreTests:android.text.format.FormatterTest Change-Id: I1d9828ec97f2cbfb7ce27c266a04d4c02b090d6d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions