am 600f1887: Guard against null parent in Launcher2.Search.clearAnimation()

Merge commit '600f188702c1ce8e5c250ea049a5e22f4ff17577' into eclair-mr2

* commit '600f188702c1ce8e5c250ea049a5e22f4ff17577':
  Guard against null parent in Launcher2.Search.clearAnimation()
This commit is contained in:
Bjorn Bringert
2009-11-23 08:55:43 -08:00
committed by Android Git Automerger
+2 -1
View File
@@ -253,7 +253,8 @@ public class Search extends LinearLayout
if (animation.hasEnded()
&& animation.getFillAfter()
&& animation.willChangeBounds()) {
((View) getParent()).invalidate();
View parent = (View) getParent();
if (parent != null) parent.invalidate();
} else {
invalidate();
}