diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2017-11-14 19:20:07 -0800 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2017-11-15 16:19:35 -0800 |
commit | 2e97386d9db1616134d9c76d19563028ffdcc66e (patch) | |
tree | fee7579100699cb8423a9160163f917151185604 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | fcd996cc36cd45ad45b0fb634308d776f9647c03 (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_test.cpp')
0 files changed, 0 insertions, 0 deletions