diff --git a/app/src/common/shared/com/igalia/wolvic/ui/widgets/NavigationBarWidget.java b/app/src/common/shared/com/igalia/wolvic/ui/widgets/NavigationBarWidget.java index 36674807def..f7f24922b36 100644 --- a/app/src/common/shared/com/igalia/wolvic/ui/widgets/NavigationBarWidget.java +++ b/app/src/common/shared/com/igalia/wolvic/ui/widgets/NavigationBarWidget.java @@ -1275,7 +1275,7 @@ public void onSendTab() { @Override public void onFindInPage() { hideMenu(); - mAttachedWindow.hidePanel(); + mAttachedWindow.hideAllPanel(); mViewModel.setIsFindInPage(true); } diff --git a/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java b/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java index de2c58d9129..1608693e7f8 100644 --- a/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java +++ b/app/src/common/shared/com/igalia/wolvic/ui/widgets/WindowWidget.java @@ -537,6 +537,10 @@ int getSelectedPanel() { return mLibrary.getSelectedPanelType(); } + public void hideAllPanel() { + hideAllPanel(true); + } + private void hideAllPanel(boolean switchSurface) { if (mViewModel.getIsLibraryVisible().getValue().get()) { hidePanel(switchSurface); @@ -663,6 +667,7 @@ private void showDownloadsPanel(boolean switchSurface) { if (mView == null) { setView(mDownloads, switchSurface); mDownloads.onShow(); + mViewModel.setIsFindInPage(false); mViewModel.setIsDownloadsVisible(true); showPanelCommonAction(); @@ -694,6 +699,7 @@ private void showWebAppsPanel(boolean switchSurface) { if (mView == null) { setView(mWebApps, switchSurface); mWebApps.onShow(); + mViewModel.setIsFindInPage(false); mViewModel.setIsWebAppsVisible(true); showPanelCommonAction(); @@ -725,6 +731,7 @@ private void showAddonsPanel(boolean switchSurface) { if (mView == null) { setView(mAddons, switchSurface); mAddons.onShow(); + mViewModel.setIsFindInPage(false); mViewModel.setIsAddonsVisible(true); showPanelCommonAction();