From 3241d1bd47d95e2c99168a70544c44af6287bc9e Mon Sep 17 00:00:00 2001 From: Michael Kolb Date: Thu, 15 Dec 2011 14:42:51 -0800 Subject: Check current index in PieStackView Bug: 5569079 Change-Id: I5af1e37c1a73dcf94ae684ac5f2796db5a4ab3be --- src/com/android/browser/view/PieStackView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/browser/view/PieStackView.java b/src/com/android/browser/view/PieStackView.java index ca641f9..7e1922d 100644 --- a/src/com/android/browser/view/PieStackView.java +++ b/src/com/android/browser/view/PieStackView.java @@ -84,7 +84,7 @@ public class PieStackView extends BasePieView { @Override public void draw(Canvas canvas) { - if (mViews != null) { + if ((mViews != null) && (mCurrent > -1)) { final int n = mViews.size(); for (int i = 0; i < mCurrent; i++) { drawView(mViews.get(i), canvas); -- cgit v1.1