mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] No issue: Fixed visibility bugs in quick action sheet (https://github.com/mozilla-mobile/fenix/pull/1927)
This commit is contained in:
parent
e04a7b05a7
commit
d3002146fd
@ -59,6 +59,9 @@ class QuickActionSheet @JvmOverloads constructor(
|
|||||||
quickActionSheetBehavior: QuickActionSheetBehavior,
|
quickActionSheetBehavior: QuickActionSheetBehavior,
|
||||||
duration: Long = bounceAnimationLength
|
duration: Long = bounceAnimationLength
|
||||||
) {
|
) {
|
||||||
|
val overlay = findViewById<View>(R.id.overlay)
|
||||||
|
overlay.alpha = 0F
|
||||||
|
|
||||||
val normalPeekHeight = quickActionSheetBehavior.peekHeight
|
val normalPeekHeight = quickActionSheetBehavior.peekHeight
|
||||||
|
|
||||||
val peakHeightMultiplier = if (duration == demoBounceAnimationLength)
|
val peakHeightMultiplier = if (duration == demoBounceAnimationLength)
|
||||||
|
@ -2,12 +2,8 @@
|
|||||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/quick_action_sheet"
|
android:id="@+id/quick_action_sheet"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content">
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?foundation"
|
android:background="?foundation"
|
||||||
@ -28,6 +24,10 @@
|
|||||||
android:paddingTop="7dp"
|
android:paddingTop="7dp"
|
||||||
android:src="@drawable/ic_drawer_pull_tab" />
|
android:src="@drawable/ic_drawer_pull_tab" />
|
||||||
|
|
||||||
|
<FrameLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/quick_action_buttons_layout"
|
android:id="@+id/quick_action_buttons_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -91,7 +91,6 @@
|
|||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/overlay"
|
android:id="@+id/overlay"
|
||||||
@ -100,3 +99,4 @@
|
|||||||
android:alpha="1.0"
|
android:alpha="1.0"
|
||||||
android:background="?foundation" />
|
android:background="?foundation" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user