summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-12-15 14:42:51 -0800
committerMichael Kolb <kolby@google.com>2011-12-15 14:42:51 -0800
commit3241d1bd47d95e2c99168a70544c44af6287bc9e (patch)
tree5ab6b63da18e900d7102e3017b95c602835372b7 /src
parent0b2dc2befd97808992ffc3dac9eae05ec7602171 (diff)
downloadpackages_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')
-rw-r--r--src/com/android/browser/view/PieStackView.java2
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);