commit | 2e97386d9db1616134d9c76d19563028ffdcc66e | [log] [tgz] |
---|---|---|
author | Roozbeh Pournader <roozbeh@google.com> | Tue Nov 14 19:20:07 2017 -0800 |
committer | Roozbeh Pournader <roozbeh@google.com> | Wed Nov 15 16:19:35 2017 -0800 |
tree | fee7579100699cb8423a9160163f917151185604 | |
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