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