[android] Review fixes.

This commit is contained in:
Dmitry Yunitsky 2016-09-14 00:48:06 +03:00
parent bf190d9b74
commit e351589f67
3 changed files with 3 additions and 5 deletions

View file

@ -60,5 +60,4 @@
android:background="?nav_background"
android:src="@drawable/ic_menu_search"
android:tint="@null"/>
</RelativeLayout>
</RelativeLayout>

View file

@ -124,14 +124,13 @@ class SearchWheel implements View.OnClickListener
if (mIsExpanded)
{
animRes = R.animator.show_zoom_out_alpha;
mIsExpanded = false;
}
else
{
animRes = R.animator.show_zoom_in_alpha;
mIsExpanded = true;
UiUtils.show(mSearchLayout);
}
mIsExpanded = !mIsExpanded;
final Animator animator = AnimatorInflater.loadAnimator(mSearchLayout.getContext(), animRes);
animator.setTarget(mSearchLayout);
animator.start();

View file

@ -159,7 +159,7 @@ class TabAdapter extends FragmentPagerAdapter
{
final Context context = tabs.getContext();
final LayoutInflater inflater = LayoutInflater.from(context);
boolean landscape = UiUtils.isLandscape(context);
final boolean landscape = UiUtils.isLandscape(context);
int padding = UiUtils.dimen(landscape ? R.dimen.margin_half
: R.dimen.margin_eighth);