summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/widget
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-08-17 15:08:12 -0700
committerJeff Sharkey <jsharkey@android.com>2011-08-18 12:01:15 -0700
commit30dde0f5a07e1b15de21d6a278721d918c5900be (patch)
tree59060327f21e0bb015fccd3e6b347772a5d24300 /src/com/android/settings/widget
parent96bc0513772d7702440fe9a80a745892b9085cc9 (diff)
downloadpackages_apps_settings-30dde0f5a07e1b15de21d6a278721d918c5900be.zip
packages_apps_settings-30dde0f5a07e1b15de21d6a278721d918c5900be.tar.gz
packages_apps_settings-30dde0f5a07e1b15de21d6a278721d918c5900be.tar.bz2
Reinforce limited networks in data usage UI.
When restricting background data, list the networks the restriction applies to. Bug: 5131685, 5058106 Change-Id: Idde084dfa5ac6313a8d145cb6f2603aedb154590
Diffstat (limited to 'src/com/android/settings/widget')
-rw-r--r--src/com/android/settings/widget/ChartGridView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/widget/ChartGridView.java b/src/com/android/settings/widget/ChartGridView.java
index c2702e4..b930c62 100644
--- a/src/com/android/settings/widget/ChartGridView.java
+++ b/src/com/android/settings/widget/ChartGridView.java
@@ -116,7 +116,7 @@ public class ChartGridView extends View {
mBorder.setBounds(0, 0, width, height);
mBorder.draw(canvas);
- final int padding = mLayoutStart.getHeight() / 8;
+ final int padding = mLayoutStart != null ? mLayoutStart.getHeight() / 8 : 0;
final Layout start = mLayoutStart;
if (start != null) {