Make number in dialog highlighted

Bug: 28787910

Change-Id: Idf6767156c0a3dafffb62b9a41ee81f6a9712a2f
(cherry picked from commit c54973b8d8)
This commit is contained in:
jackqdyulei
2016-08-11 14:44:53 -07:00
committed by Lei Yu
parent 1339fe799d
commit 7a78213776

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);
} }
} }