Make number in dialog highlighted am: 7a78213776
am: 226ccfe62f
Change-Id: Ie22cae038131a206f2d8a246ba3cd80398ba7cff
This commit is contained in:
@@ -198,10 +198,16 @@ public class BillingCycleSettings extends DataUsageBase implements
|
||||
final long limitDisabled = isLimit ? LIMIT_DISABLED : WARNING_DISABLED;
|
||||
|
||||
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);
|
||||
} 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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user