Sfoglia il codice sorgente

Remove unnecessary dialog padding dimens

arkon 5 anni fa
parent
commit
6064eda68f

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt

@@ -205,7 +205,7 @@ class SettingsLibraryController : SettingsController() {
         override fun onCreateDialog(savedViewState: Bundle?): Dialog {
             val dialog = MaterialDialog(activity!!)
                 .title(R.string.pref_library_columns)
-                .customView(R.layout.pref_library_columns)
+                .customView(R.layout.pref_library_columns, horizontalPadding = true)
                 .positiveButton(android.R.string.ok) {
                     preferences.portraitColumns().set(portrait)
                     preferences.landscapeColumns().set(landscape)

+ 1 - 5
app/src/main/res/layout/pref_library_columns.xml

@@ -4,11 +4,7 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:baselineAligned="false"
-    android:orientation="horizontal"
-    android:paddingStart="@dimen/dialog_content_padding"
-    android:paddingTop="@dimen/dialog_margin_top_content"
-    android:paddingEnd="@dimen/dialog_content_padding"
-    android:paddingBottom="@dimen/dialog_content_padding">
+    android:orientation="horizontal">
 
     <LinearLayout
         android:layout_width="0dp"

+ 0 - 3
app/src/main/res/values/dimens.xml

@@ -15,9 +15,6 @@
 
     <dimen name="action_toolbar_list_padding">72dp</dimen>
 
-    <dimen name="dialog_content_padding">24dp</dimen>
-    <dimen name="dialog_margin_top_content">20dp</dimen>
-
     <dimen name="text_headline">24sp</dimen>
     <dimen name="text_large_title">22sp</dimen>
     <dimen name="text_title">20sp</dimen>