diff --git a/app/src/main/java/io/legado/app/ui/book/arrange/SourcePickerDialog.kt b/app/src/main/java/io/legado/app/ui/book/arrange/SourcePickerDialog.kt index e21260cfd..56c8cccc8 100644 --- a/app/src/main/java/io/legado/app/ui/book/arrange/SourcePickerDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/arrange/SourcePickerDialog.kt @@ -16,10 +16,8 @@ import io.legado.app.databinding.ItemTextBinding import io.legado.app.lib.theme.primaryColor import io.legado.app.lib.theme.primaryTextColor import io.legado.app.utils.applyTint -import io.legado.app.utils.dpToPx import io.legado.app.utils.setLayout import io.legado.app.utils.viewbindingdelegate.viewBinding -import splitties.views.rightPadding class SourcePickerDialog : BaseDialogFragment(R.layout.dialog_source_picker) { @@ -43,7 +41,6 @@ class SourcePickerDialog : BaseDialogFragment(R.layout.dialog_source_picker) { private fun initView() { binding.toolBar.setBackgroundColor(primaryColor) binding.toolBar.title = "选择书源" - binding.toolBar.rightPadding = 16.dpToPx() binding.recyclerView.layoutManager = LinearLayoutManager(requireContext()) binding.recyclerView.adapter = adapter searchView.applyTint(primaryTextColor) diff --git a/app/src/main/res/layout/dialog_source_picker.xml b/app/src/main/res/layout/dialog_source_picker.xml index b6d0517e8..4b0818ebd 100644 --- a/app/src/main/res/layout/dialog_source_picker.xml +++ b/app/src/main/res/layout/dialog_source_picker.xml @@ -11,11 +11,13 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="?attr/actionBarStyle" + android:paddingRight="16dp" app:attachToActivity="false" app:contentLayout="@layout/view_search" app:fitStatusBar="false" app:popupTheme="@style/AppTheme.PopupOverlay" - app:titleTextAppearance="@style/ToolbarTitle" /> + app:titleTextAppearance="@style/ToolbarTitle" + tools:ignore="RtlHardcoded,RtlSymmetry" />