1
0
Fork 0

For #2225 - Don't pass click events under find in page bar

master
Emily Kager 2019-05-02 13:08:55 -07:00 committed by Emily Kager
parent 73de0cd2e8
commit 30ffc9fee2
2 changed files with 6 additions and 3 deletions

View File

@ -16,6 +16,7 @@ import mozilla.components.feature.toolbar.ToolbarFeature
import mozilla.components.feature.toolbar.ToolbarPresenter
import mozilla.components.lib.publicsuffixlist.PublicSuffixList
import mozilla.components.support.base.feature.LifecycleAwareFeature
import mozilla.components.support.ktx.android.view.hideKeyboard
import org.mozilla.fenix.DefaultThemeManager
import org.mozilla.fenix.R
import org.mozilla.fenix.browser.BrowserFragmentDirections
@ -51,6 +52,7 @@ class ToolbarIntegration(
val tabsAction = TabCounterToolbarButton(
sessionManager,
{
toolbar.hideKeyboard()
Navigation.findNavController(toolbar)
.navigate(BrowserFragmentDirections.actionBrowserFragmentToHomeFragment())
},

View File

@ -32,9 +32,10 @@
android:layout_height="56dp"
android:layout_gravity="bottom"
android:background="?foundation"
mozac:findInPageResultCountTextColor="?primaryText"
mozac:findInPageButtonsTint="?primaryText"
android:clickable="true"
android:visibility="gone"
app:layout_behavior="org.mozilla.fenix.components.FindInPageBarBehavior" />
app:layout_behavior="org.mozilla.fenix.components.FindInPageBarBehavior"
mozac:findInPageButtonsTint="?primaryText"
mozac:findInPageResultCountTextColor="?primaryText" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>