From ba0f3ece04c8d1f8e8d3da8f1a2b5772bbc139e2 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 8 Apr 2020 03:34:07 +0530 Subject: ui: tweak FABs to use the correct type Signed-off-by: Harsh Shandilya --- ui/src/main/java/com/wireguard/android/widget/EdgeToEdge.kt | 6 +++--- ui/src/main/res/layout/log_viewer_activity.xml | 5 ++--- ui/src/main/res/layout/tunnel_list_fragment.xml | 5 ++--- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/ui/src/main/java/com/wireguard/android/widget/EdgeToEdge.kt b/ui/src/main/java/com/wireguard/android/widget/EdgeToEdge.kt index c31d1bb1..3f109b37 100644 --- a/ui/src/main/java/com/wireguard/android/widget/EdgeToEdge.kt +++ b/ui/src/main/java/com/wireguard/android/widget/EdgeToEdge.kt @@ -12,7 +12,7 @@ import androidx.core.view.marginRight import androidx.core.view.marginTop import androidx.core.view.updateLayoutParams import androidx.core.view.updatePadding -import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton +import com.google.android.material.floatingactionbutton.FloatingActionButton /** * A utility for edge-to-edge display. It provides several features needed to make the app @@ -27,7 +27,7 @@ object EdgeToEdge { } @JvmStatic - fun setUpScrollingContent(scrollingContent: ViewGroup, fab: ExtendedFloatingActionButton?) { + fun setUpScrollingContent(scrollingContent: ViewGroup, fab: FloatingActionButton?) { val originalPaddingLeft = scrollingContent.paddingLeft val originalPaddingRight = scrollingContent.paddingRight val originalPaddingBottom = scrollingContent.paddingBottom @@ -50,7 +50,7 @@ object EdgeToEdge { } @JvmStatic - fun setUpFAB(fab: ExtendedFloatingActionButton) { + fun setUpFAB(fab: FloatingActionButton) { val originalMarginLeft = fab.marginLeft val originalMarginRight = fab.marginRight val originalMarginBottom = fab.marginBottom diff --git a/ui/src/main/res/layout/log_viewer_activity.xml b/ui/src/main/res/layout/log_viewer_activity.xml index 1d4a466e..b4451921 100644 --- a/ui/src/main/res/layout/log_viewer_activity.xml +++ b/ui/src/main/res/layout/log_viewer_activity.xml @@ -16,13 +16,12 @@ tools:itemCount="20" tools:listitem="@layout/log_viewer_entry" /> - + app:srcCompat="@drawable/ic_action_share_white" /> diff --git a/ui/src/main/res/layout/tunnel_list_fragment.xml b/ui/src/main/res/layout/tunnel_list_fragment.xml index 7b7cb4b5..277ecd01 100644 --- a/ui/src/main/res/layout/tunnel_list_fragment.xml +++ b/ui/src/main/res/layout/tunnel_list_fragment.xml @@ -66,14 +66,13 @@ android:textSize="20sp" /> - + app:srcCompat="@drawable/ic_action_add_white" /> -- cgit v1.2.3