summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-08-01 10:45:16 -0700
committerMichael Kolb <kolby@google.com>2011-08-01 10:45:21 -0700
commit3bb854b7830f82923af016d7b6731496c5e70c74 (patch)
treedd3b49c1476e583ade412989c3cb8ee86a682eff /src/com
parentc1eeb12b6e4570520c3571aba9c04be91b4a20d5 (diff)
downloadpackages_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')
-rw-r--r--src/com/android/browser/NavTabGallery.java2
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) {