Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fixes #806 Controller back button on Go stops working after suggestio…
Browse files Browse the repository at this point in the history
…ns dialog shown (#807)
  • Loading branch information
keianhzo authored and bluemarvin committed Nov 21, 2018
1 parent d70ef7d commit 22ee10e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ public void OnShowSearchPopup() {
final String text = mURLBar.getText().trim();
final String originalText = mURLBar.getOriginalText().trim();
if (originalText.length() <= 0) {
mPopup.setVisible(false);
mPopup.hide(UIWidget.KEEP_WIDGET);
return;
}

Expand Down Expand Up @@ -837,7 +837,7 @@ public void OnShowSearchPopup() {
@Override
public void OnHideSearchPopup() {
if (mPopup != null) {
mPopup.setVisible(false);
mPopup.hide(UIWidget.KEEP_WIDGET);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ public void hide(@HideFlags int aHideFlags) {
mWidgetPlacement.visible = false;
if (aHideFlags == REMOVE_WIDGET) {
mWidgetManager.removeWidget(this);

} else {
mWidgetManager.updateWidget(this);
}
mWidgetManager.popBackHandler(mBackHandler);
}
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/anim/popup_scaledown.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator">
<scale
android:duration="200"
android:fromXScale="1.0"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/anim/popup_scaleup.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_decelerate_interpolator">
<scale
android:duration="200"
android:fromXScale="1.0"
Expand Down

0 comments on commit 22ee10e

Please sign in to comment.