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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user