Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23630948 authored by Lei Yu's avatar Lei Yu Committed by Android (Google) Code Review
Browse files

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

parents dd90acf2 7a782137
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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);
            }
        }