|
|
@ -41,7 +41,7 @@ class MoreConfigDialog : DialogFragment() { |
|
|
|
inflater: LayoutInflater, |
|
|
|
inflater: LayoutInflater, |
|
|
|
container: ViewGroup?, |
|
|
|
container: ViewGroup?, |
|
|
|
savedInstanceState: Bundle? |
|
|
|
savedInstanceState: Bundle? |
|
|
|
): View? { |
|
|
|
): View { |
|
|
|
(activity as ReadBookActivity).bottomDialog++ |
|
|
|
(activity as ReadBookActivity).bottomDialog++ |
|
|
|
val view = LinearLayout(context) |
|
|
|
val view = LinearLayout(context) |
|
|
|
view.setBackgroundColor(requireContext().bottomBackground) |
|
|
|
view.setBackgroundColor(requireContext().bottomBackground) |
|
|
@ -107,7 +107,7 @@ class MoreConfigDialog : DialogFragment() { |
|
|
|
} |
|
|
|
} |
|
|
|
PreferKey.keepLight -> postEvent(key, true) |
|
|
|
PreferKey.keepLight -> postEvent(key, true) |
|
|
|
PreferKey.textSelectAble -> postEvent(key, getPrefBoolean(key)) |
|
|
|
PreferKey.textSelectAble -> postEvent(key, getPrefBoolean(key)) |
|
|
|
getString(R.string.pk_requested_direction) -> { |
|
|
|
PreferKey.screenDirection -> { |
|
|
|
(activity as? ReadBookActivity)?.setOrientation() |
|
|
|
(activity as? ReadBookActivity)?.setOrientation() |
|
|
|
} |
|
|
|
} |
|
|
|
PreferKey.textFullJustify, |
|
|
|
PreferKey.textFullJustify, |
|
|
|