Skip to content

Commit

Permalink
AP-433 solves an animation bug that uncorreclty show the search view (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
spacifici authored Jul 15, 2019
1 parent 57dbc2b commit 6188992
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/src/lumen/res/layout/search_bar_widget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

<TextView
android:id="@+id/title_bar"
android:focusable="true"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="@dimen/title_bar_h"
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/com/cliqz/browser/widget/SearchBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ public void showTitleBar() {
animation.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
searchEditText.clearFocus();
// We can't searchEditText.clearFocus() because it first requests focus bringing
// the SearchView to front.
titleBar.requestFocus();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.6'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'com.github.cliqz-oss:minibloomfilter:1.0'
Expand Down

0 comments on commit 6188992

Please sign in to comment.