am 43cbe3ff
: am b6e57c1f
: Merge "Do not set minimum value for mobile data limit dialog higher than the actual set value"
* commit '43cbe3ffb4f0777d8aa833355c523f4a1ff93818': Do not set minimum value for mobile data limit dialog higher than the actual set value
This commit is contained in:
committed by
Android Git Automerger
commit
05eb9852a9
@@ -1746,7 +1746,7 @@ public class DataUsageSummary extends Fragment {
|
|||||||
final long limitBytes = editor.getPolicyLimitBytes(template);
|
final long limitBytes = editor.getPolicyLimitBytes(template);
|
||||||
|
|
||||||
bytesPicker.setMaxValue(Integer.MAX_VALUE);
|
bytesPicker.setMaxValue(Integer.MAX_VALUE);
|
||||||
if (warningBytes != WARNING_DISABLED) {
|
if (warningBytes != WARNING_DISABLED && limitBytes > 0) {
|
||||||
bytesPicker.setMinValue((int) (warningBytes / MB_IN_BYTES) + 1);
|
bytesPicker.setMinValue((int) (warningBytes / MB_IN_BYTES) + 1);
|
||||||
} else {
|
} else {
|
||||||
bytesPicker.setMinValue(0);
|
bytesPicker.setMinValue(0);
|
||||||
|
Reference in New Issue
Block a user