From 950322306b7dba66277bd0e7515a6775e62a288d Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Fri, 3 Jan 2025 21:52:43 -0500 Subject: [PATCH] Use View.setPaddingRelative directly --- app/src/main/java/app/grapheneos/camera/ui/BottomTabLayout.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/app/grapheneos/camera/ui/BottomTabLayout.kt b/app/src/main/java/app/grapheneos/camera/ui/BottomTabLayout.kt index 850c4cd73..a69de7c52 100644 --- a/app/src/main/java/app/grapheneos/camera/ui/BottomTabLayout.kt +++ b/app/src/main/java/app/grapheneos/camera/ui/BottomTabLayout.kt @@ -31,8 +31,7 @@ class BottomTabLayout @JvmOverloads constructor( val firstTab = tabParent.getChildAt(0) val lastTab = tabParent.getChildAt(tabParent.childCount - 1) sp = width / 2 - firstTab.width / 2 - ViewCompat.setPaddingRelative( - getChildAt(0), + getChildAt(0).setPaddingRelative( sp, 0, width / 2 - lastTab.width / 2,