Merge "Make number in dialog highlighted" into nyc-mr1-dev

This commit is contained in:
Lei Yu
2016-08-22 21:50:29 +00:00
committed by Android (Google) Code Review

View File

@@ -198,10 +198,16 @@ public class BillingCycleSettings extends DataUsageBase implements
final long limitDisabled = isLimit ? LIMIT_DISABLED : WARNING_DISABLED; final long limitDisabled = isLimit ? LIMIT_DISABLED : WARNING_DISABLED;
if (bytes > 1.5f * GB_IN_BYTES) { if (bytes > 1.5f * GB_IN_BYTES) {
bytesPicker.setText(formatText(bytes / (float) GB_IN_BYTES)); final String bytesText = formatText(bytes / (float) GB_IN_BYTES);
bytesPicker.setText(bytesText);
bytesPicker.setSelection(0, bytesText.length());
type.setSelection(1); type.setSelection(1);
} else { } else {
bytesPicker.setText(formatText(bytes / (float) MB_IN_BYTES)); final String bytesText = formatText(bytes / (float) MB_IN_BYTES);
bytesPicker.setText(bytesText);
bytesPicker.setSelection(0, bytesText.length());
type.setSelection(0); type.setSelection(0);
} }
} }