Skip to content

Commit

Permalink
Reduce elevation when dismissing search.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbutcher committed Nov 6, 2015
1 parent 329d875 commit 47173f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/main/java/io/plaidapp/ui/SearchActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,14 @@ public void onAnimationEnd(Animator animation) {
android.R.interpolator.fast_out_linear_in))
.setListener(null)
.start();
if (searchToolbar.getZ() != 0f) {
searchToolbar.animate()
.z(0f)
.setDuration(600L)
.setInterpolator(AnimationUtils.loadInterpolator(this,
android.R.interpolator.fast_out_linear_in))
.start();
}

// if we're showing search results, circular hide them
if (resultsContainer.getHeight() > 0) {
Expand Down

0 comments on commit 47173f6

Please sign in to comment.