Fixes #427: Browser toolbar does not auto-hide if ANY accessibility on
parent
cbb26cb45f
commit
5dcf4e5a5f
|
@ -80,7 +80,7 @@ class BrowserFragment : Fragment(), BackHandler {
|
||||||
val accessibilityManager = context
|
val accessibilityManager = context
|
||||||
?.getSystemService(Context.ACCESSIBILITY_SERVICE) as AccessibilityManager
|
?.getSystemService(Context.ACCESSIBILITY_SERVICE) as AccessibilityManager
|
||||||
|
|
||||||
if (!accessibilityManager.isEnabled) {
|
if (!accessibilityManager.isTouchExplorationEnabled) {
|
||||||
behavior = BrowserToolbarBottomBehavior(view.context, null)
|
behavior = BrowserToolbarBottomBehavior(view.context, null)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,37 +11,32 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context="browser.BrowserFragment">
|
tools:context="browser.BrowserFragment">
|
||||||
|
|
||||||
<FrameLayout
|
<mozilla.components.concept.engine.EngineView
|
||||||
|
android:id="@+id/engineView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
<mozilla.components.concept.engine.EngineView
|
<mozilla.components.browser.awesomebar.BrowserAwesomeBar
|
||||||
android:id="@+id/engineView"
|
android:id="@+id/awesomeBar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="wrap_content"
|
||||||
|
android:padding="4dp"
|
||||||
<mozilla.components.browser.awesomebar.BrowserAwesomeBar
|
android:visibility="gone"
|
||||||
android:id="@+id/awesomeBar"
|
android:background="@color/private_browsing_top_gradient"
|
||||||
android:layout_width="match_parent"
|
mozac:awesomeBarChipBackgroundColor="#444444"
|
||||||
android:layout_height="wrap_content"
|
mozac:awesomeBarChipTextColor="#ffffff"
|
||||||
android:padding="4dp"
|
mozac:awesomeBarDescriptionTextColor="?attr/awesomeBarDescriptionTextColor"
|
||||||
android:visibility="gone"
|
mozac:awesomeBarTitleTextColor="?attr/awesomeBarTitleTextColor" />
|
||||||
android:background="@color/private_browsing_top_gradient"
|
|
||||||
mozac:awesomeBarChipBackgroundColor="#444444"
|
|
||||||
mozac:awesomeBarChipTextColor="#ffffff"
|
|
||||||
mozac:awesomeBarDescriptionTextColor="?attr/awesomeBarDescriptionTextColor"
|
|
||||||
mozac:awesomeBarTitleTextColor="?attr/awesomeBarTitleTextColor" />
|
|
||||||
</FrameLayout>
|
|
||||||
|
|
||||||
<mozilla.components.feature.findinpage.view.FindInPageBar
|
<mozilla.components.feature.findinpage.view.FindInPageBar
|
||||||
android:id="@+id/findInPageView"
|
android:id="@+id/findInPageView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
android:background="@color/off_white"
|
android:background="@color/off_white"
|
||||||
mozac:findInPageResultCountTextColor="?android:attr/colorPrimary"
|
mozac:findInPageResultCountTextColor="?android:attr/colorPrimary"
|
||||||
mozac:findInPageButtonsTint="?android:attr/colorPrimary"
|
mozac:findInPageButtonsTint="?android:attr/colorPrimary"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
app:layout_behavior="org.mozilla.fenix.components.FindInPageBarBehavior" />
|
app:layout_behavior="org.mozilla.fenix.components.FindInPageBarBehavior" />
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
Loading…
Reference in New Issue