diff options
author | Michael Kolb <kolby@google.com> | 2011-08-01 10:45:16 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-08-01 10:45:21 -0700 |
commit | 3bb854b7830f82923af016d7b6731496c5e70c74 (patch) | |
tree | dd3b49c1476e583ade412989c3cb8ee86a682eff /src/com/android/browser | |
parent | c1eeb12b6e4570520c3571aba9c04be91b4a20d5 (diff) | |
download | packages_apps_Browser-3bb854b7830f82923af016d7b6731496c5e70c74.zip packages_apps_Browser-3bb854b7830f82923af016d7b6731496c5e70c74.tar.gz packages_apps_Browser-3bb854b7830f82923af016d7b6731496c5e70c74.tar.bz2 |
monkey-proofing animation
Bug: 5103205
added view null check
Change-Id: I5388213e05c65c4bb644757cc999bbdf052f3c49
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/NavTabGallery.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/NavTabGallery.java b/src/com/android/browser/NavTabGallery.java index 8aa2782..af02e8d 100644 --- a/src/com/android/browser/NavTabGallery.java +++ b/src/com/android/browser/NavTabGallery.java @@ -127,7 +127,7 @@ public class NavTabGallery extends Gallery { } private void animateOut(final View v, float velocity) { - if (mAnimator != null) return; + if ((v == null) || (mAnimator != null)) return; final int position = mFirstPosition + indexOfChild(v); int target = 0; if (velocity < 0) { |