pull/487/head^2
gedoor 4 years ago
parent 0b426907ff
commit 9c47a79b4d
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/config/AutoReadDialog.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt
  3. 2
      app/src/main/java/io/legado/app/ui/book/read/config/ClickActionConfigDialog.kt
  4. 2
      app/src/main/java/io/legado/app/ui/book/read/config/MoreConfigDialog.kt
  5. 2
      app/src/main/java/io/legado/app/ui/book/read/config/ReadAloudDialog.kt
  6. 2
      app/src/main/java/io/legado/app/ui/book/read/config/ReadStyleDialog.kt

@ -21,7 +21,6 @@ class AutoReadDialog : BaseDialogFragment() {
override fun onStart() {
super.onStart()
(activity as ReadBookActivity).bottomDialog++
dialog?.window?.let {
it.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
it.setBackgroundDrawableResource(R.color.background)
@ -44,6 +43,7 @@ class AutoReadDialog : BaseDialogFragment() {
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
(activity as ReadBookActivity).bottomDialog++
callBack = activity as? CallBack
return inflater.inflate(R.layout.dialog_auto_read, container)
}

@ -50,7 +50,6 @@ class BgTextConfigDialog : BaseDialogFragment(), FilePickerDialog.CallBack {
override fun onStart() {
super.onStart()
(activity as ReadBookActivity).bottomDialog++
dialog?.window?.let {
it.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
it.setBackgroundDrawableResource(R.color.background)
@ -68,6 +67,7 @@ class BgTextConfigDialog : BaseDialogFragment(), FilePickerDialog.CallBack {
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
(activity as ReadBookActivity).bottomDialog++
return inflater.inflate(R.layout.dialog_read_bg_text, container)
}

@ -23,7 +23,6 @@ class ClickActionConfigDialog : BaseDialogFragment() {
override fun onStart() {
super.onStart()
(activity as ReadBookActivity).bottomDialog++
dialog?.window?.let {
it.setBackgroundDrawableResource(R.color.transparent)
it.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)
@ -35,6 +34,7 @@ class ClickActionConfigDialog : BaseDialogFragment() {
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
(activity as ReadBookActivity).bottomDialog++
return inflater.inflate(R.layout.dialog_click_action_config, container)
}

@ -25,7 +25,6 @@ class MoreConfigDialog : DialogFragment() {
override fun onStart() {
super.onStart()
(activity as ReadBookActivity).bottomDialog++
dialog?.window?.let {
it.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
it.setBackgroundDrawableResource(R.color.background)
@ -43,6 +42,7 @@ class MoreConfigDialog : DialogFragment() {
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
(activity as ReadBookActivity).bottomDialog++
val view = LinearLayout(context)
view.setBackgroundColor(requireContext().bottomBackground)
view.id = R.id.tag1

@ -26,7 +26,6 @@ class ReadAloudDialog : BaseDialogFragment() {
override fun onStart() {
super.onStart()
(activity as ReadBookActivity).bottomDialog++
dialog?.window?.let {
it.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
it.setBackgroundDrawableResource(R.color.background)
@ -49,6 +48,7 @@ class ReadAloudDialog : BaseDialogFragment() {
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
(activity as ReadBookActivity).bottomDialog++
callBack = activity as? CallBack
return inflater.inflate(R.layout.dialog_read_aloud, container)
}

@ -35,7 +35,6 @@ class ReadStyleDialog : BaseDialogFragment(), FontSelectDialog.CallBack {
override fun onStart() {
super.onStart()
(activity as ReadBookActivity).bottomDialog++
dialog?.window?.let {
it.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
it.setBackgroundDrawableResource(R.color.background)
@ -53,6 +52,7 @@ class ReadStyleDialog : BaseDialogFragment(), FontSelectDialog.CallBack {
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
(activity as ReadBookActivity).bottomDialog++
return inflater.inflate(R.layout.dialog_read_book_style, container)
}

Loading…
Cancel
Save