Remove unnecessary dialog padding dimens

This commit is contained in:
arkon 2020-04-26 20:05:14 -04:00
parent fe803a4588
commit 6064eda68f
3 changed files with 2 additions and 9 deletions

View File

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

View File

@ -4,11 +4,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:baselineAligned="false" android:baselineAligned="false"
android:orientation="horizontal" 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">
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"

View File

@ -15,9 +15,6 @@
<dimen name="action_toolbar_list_padding">72dp</dimen> <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_headline">24sp</dimen>
<dimen name="text_large_title">22sp</dimen> <dimen name="text_large_title">22sp</dimen>
<dimen name="text_title">20sp</dimen> <dimen name="text_title">20sp</dimen>