Update StringUtil#formatElapsedTime method (2/3)
- Update the usage and the test case - Update discharging string to follow new string doc Bug: 183689347 Test: make RunSettingsRoboTests Change-Id: I1e14e7da8cb02755d8cf6e12626a0d94fad87121
This commit is contained in:
committed by
Wesley Wang
parent
acacad4cdf
commit
50f314e45d
@@ -364,7 +364,12 @@ public class AdvancedBluetoothDetailsHeaderController extends BasePreferenceCont
|
||||
final TextView textView = linearLayout.findViewById(R.id.bt_battery_prediction);
|
||||
if (estimateReady == 1) {
|
||||
textView.setVisibility(View.VISIBLE);
|
||||
textView.setText(StringUtil.formatElapsedTime(mContext, batteryEstimate, false));
|
||||
textView.setText(
|
||||
StringUtil.formatElapsedTime(
|
||||
mContext,
|
||||
batteryEstimate,
|
||||
/* withSeconds */ false,
|
||||
/* collapseTimeUnit */ false));
|
||||
} else {
|
||||
textView.setVisibility(View.GONE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user