diff options
author | Michael Kolb <kolby@google.com> | 2011-12-15 14:42:51 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-12-15 14:42:51 -0800 |
commit | 3241d1bd47d95e2c99168a70544c44af6287bc9e (patch) | |
tree | 5ab6b63da18e900d7102e3017b95c602835372b7 /src/com/android/browser | |
parent | 0b2dc2befd97808992ffc3dac9eae05ec7602171 (diff) | |
download | packages_apps_browser-3241d1bd47d95e2c99168a70544c44af6287bc9e.zip packages_apps_browser-3241d1bd47d95e2c99168a70544c44af6287bc9e.tar.gz packages_apps_browser-3241d1bd47d95e2c99168a70544c44af6287bc9e.tar.bz2 |
Check current index in PieStackView
Bug: 5569079
Change-Id: I5af1e37c1a73dcf94ae684ac5f2796db5a4ab3be
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/view/PieStackView.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |