am b6e57c1f: Merge "Do not set minimum value for mobile data limit dialog higher than the actual set value"

* commit 'b6e57c1f598fd9bf0f15c1e9eed238910e9fca1f':
  Do not set minimum value for mobile data limit dialog higher than the actual set value
This commit is contained in:
Jean-Baptiste Queru
2012-01-27 13:58:03 -08:00
committed by Android Git Automerger

View File

@@ -1761,7 +1761,7 @@ public class DataUsageSummary extends Fragment {
final long limitBytes = editor.getPolicyLimitBytes(template);
bytesPicker.setMaxValue(Integer.MAX_VALUE);
if (warningBytes != WARNING_DISABLED) {
if (warningBytes != WARNING_DISABLED && limitBytes > 0) {
bytesPicker.setMinValue((int) (warningBytes / MB_IN_BYTES) + 1);
} else {
bytesPicker.setMinValue(0);