view.setAnimation(anim);
view.setVisibility(View.GONE);
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
static void revealOpen(View view, int duration, Context context, final SearchEditText editText, final SearchView.OnOpenCloseListener listener) {
<BUG>int cx = view.getWidth() - context.getResources().getDimensionPixelSize(R.dimen.search_reveal);

int cy = context.getResources().getDimensionPixelSize(R.dimen.search_height) / 2;</BUG>
if (cx != 0 && cy != 0) {
<BUG>float finalRadius = (float) Math.hypot(cx, cy);
Animator anim = ViewAnimationUtils.createCircularReveal(view, cx, cy, 0.0f, finalRadius);</BUG>
anim.setInterpolator(new AccelerateDecelerateInterpolator());

view.setAnimation(anim);
view.setVisibility(View.VISIBLE);
}
static void fadeOut(View view, int duration) {
Animation anim = new AlphaAnimation(1.0f, 0.0f);
anim.setInterpolator(new AccelerateDecelerateInterpolator());
