summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-01-27 13:26:25 -0800
committerandroid code review <noreply-gerritcodereview@google.com>2012-01-27 13:26:25 -0800
commitb6e57c1f598fd9bf0f15c1e9eed238910e9fca1f (patch)
treed28af671681d244d514ce1e63091d5d3846135c4
parent1e78bd01ca308eec6a08ad376a889240635d6c24 (diff)
parentf9237f6e3ca32afdb79d4bcc8f13af0cd9309e84 (diff)
downloadpackages_apps_Settings-b6e57c1f598fd9bf0f15c1e9eed238910e9fca1f.tar.gz
packages_apps_Settings-b6e57c1f598fd9bf0f15c1e9eed238910e9fca1f.tar.bz2
packages_apps_Settings-b6e57c1f598fd9bf0f15c1e9eed238910e9fca1f.zip
Merge "Do not set minimum value for mobile data limit dialog higher than the actual set value"
-rw-r--r--src/com/android/settings/DataUsageSummary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/DataUsageSummary.java b/src/com/android/settings/DataUsageSummary.java
index 46d6c656f..a2f0c3f33 100644
--- a/src/com/android/settings/DataUsageSummary.java
+++ b/src/com/android/settings/DataUsageSummary.java
@@ -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);