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 850c4cd7..a69de7c5 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,