commit | acd4d23f1e86cd670bc6b2fe0ea8e11b4695a9bc | [log] [tgz] |
---|---|---|
author | Christopher Tate <ctate@google.com> | Thu Jul 16 10:31:02 2020 -0700 |
committer | Christopher Tate <ctate@google.com> | Thu Jul 16 11:31:54 2020 -0700 |
tree | 8d448c526038f043c3bcdc2021a46770c60ab6b0 | |
parent | 25ec4f6855022e44388d9f9fcc195bb516f5a122 [diff] |
Avoid churning NumberFormat instances in ProgressBar Don't construct a new locale-specific NumberFormat every time a progress bar's state is refreshed or updated. We now do this only when necessary due to a locale change. Bug: 161264248 Test: atest ProgressBarTest Change-Id: I349ec28268a3471184e5746b164f81428ad80cc8