|
|
|
@ -166,11 +166,10 @@ class ReadStyleDialog : DialogFragment(), FontSelectDialog.CallBack { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@SuppressLint("InflateParams") |
|
|
|
|
private fun showTitleConfig() { |
|
|
|
|
private fun showTitleConfig() = ReadBookConfig.apply { |
|
|
|
|
requireContext().alert(R.string.title) { |
|
|
|
|
val rootView = LayoutInflater.from(requireContext()) |
|
|
|
|
.inflate(R.layout.dialog_title_config, null).apply { |
|
|
|
|
ReadBookConfig.apply { |
|
|
|
|
rg_title_mode.checkByIndex(titleMode) |
|
|
|
|
dsb_title_size.progress = titleSize |
|
|
|
|
dsb_title_top.progress = titleTopSpacing |
|
|
|
@ -192,7 +191,6 @@ class ReadStyleDialog : DialogFragment(), FontSelectDialog.CallBack { |
|
|
|
|
postEvent(EventBus.UP_CONFIG, true) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
customView = rootView |
|
|
|
|
}.show() |
|
|
|
|
} |
|
|
|
|