diff --git a/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt b/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt index 8cbe6721fc14..9fd1236e52ab 100644 --- a/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt @@ -25,6 +25,7 @@ import androidx.lifecycle.Observer import androidx.lifecycle.ViewModelProviders import androidx.lifecycle.lifecycleScope import androidx.navigation.fragment.NavHostFragment.findNavController +import com.google.android.material.bottomsheet.BottomSheetBehavior import com.google.android.material.snackbar.Snackbar import kotlinx.android.synthetic.main.component_search.* import kotlinx.android.synthetic.main.fragment_browser.* @@ -92,6 +93,7 @@ import org.mozilla.fenix.mvi.getManagedEmitter import org.mozilla.fenix.quickactionsheet.QuickActionAction import org.mozilla.fenix.quickactionsheet.QuickActionChange import org.mozilla.fenix.quickactionsheet.QuickActionComponent +import org.mozilla.fenix.quickactionsheet.QuickActionSheetBehavior import org.mozilla.fenix.quickactionsheet.QuickActionState import org.mozilla.fenix.quickactionsheet.QuickActionViewModel import org.mozilla.fenix.settings.SupportUtils @@ -737,6 +739,9 @@ class BrowserFragment : Fragment(), BackHandler { (activity as HomeActivity).browsingModeManager.mode = BrowsingModeManager.Mode.Private } ToolbarMenu.Item.FindInPage -> { + (BottomSheetBehavior.from(nestedScrollQuickAction as View) as QuickActionSheetBehavior).apply { + state = BottomSheetBehavior.STATE_COLLAPSED + } FindInPageIntegration.launch?.invoke() requireComponents.analytics.metrics.track(Event.FindInPageOpened) }