Skip to content
Commit c6bffbf6 authored by Roozbeh Pournader's avatar Roozbeh Pournader
Browse files

Use ICU for formatting in DateUtils.formatDuration

Previously, we were using native strings. ICU has higher quality and
more comprehensive data.

Also adds parameters for specifying the format width (e.g. "2 hrs" vs
"2 hours").

Bug: 31526474
Test: adb shell am instrument -w -e class android.text.format.DateUtilsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I754f6c761c2ed3853046796c57ff2d86a6ccd43e
parent e70c9095
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment