From 30dde0f5a07e1b15de21d6a278721d918c5900be Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Wed, 17 Aug 2011 15:08:12 -0700 Subject: Reinforce limited networks in data usage UI. When restricting background data, list the networks the restriction applies to. Bug: 5131685, 5058106 Change-Id: Idde084dfa5ac6313a8d145cb6f2603aedb154590 --- src/com/android/settings/widget/ChartGridView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/settings/widget') 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) { -- cgit v1.1