Guard against null parent in Launcher2.Search.clearAnimation()

Sometimes clearAnimation() is called on the search widget
when it has no parent, e.g. when it being removed from the
home screen. This caused an NPE, because clearAnimation()
called invalidate() on the parent.

This is a partial fix for: http://b/issue?id=2246760
1 file changed
tree: f136ff45a35b5c108c01a07d41ce89967183558e
  1. res/
  2. src/
  3. Android.mk
  4. AndroidManifest.xml
  5. MODULE_LICENSE_APACHE2
  6. NOTICE