diff --git a/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt b/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt index 7737fdfc7..cefdae3f2 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt @@ -19,10 +19,7 @@ import io.legado.app.lib.theme.getPrimaryTextColor import io.legado.app.model.ReadBook import io.legado.app.ui.book.read.ReadBookActivity import io.legado.app.ui.widget.font.FontSelectDialog -import io.legado.app.utils.ColorUtils -import io.legado.app.utils.dp -import io.legado.app.utils.getIndexById -import io.legado.app.utils.postEvent +import io.legado.app.utils.* import io.legado.app.utils.viewbindingdelegate.viewBinding import splitties.views.onLongClick @@ -113,7 +110,7 @@ class ReadStyleDialog : BaseDialogFragment(), FontSelectDialog.CallBack { postEvent(EventBus.UP_CONFIG, true) } tvTextFont.setOnClickListener { - FontSelectDialog().show(childFragmentManager, "fontSelectDialog") + childFragmentManager.showDialog() } tvTextIndent.setOnClickListener { selector(