|
|
|
@ -19,21 +19,8 @@ import io.legado.app.ui.book.read.Help |
|
|
|
|
import io.legado.app.utils.postEvent |
|
|
|
|
|
|
|
|
|
class MoreConfigDialog : DialogFragment() { |
|
|
|
|
|
|
|
|
|
private val readPreferTag = "readPreferenceFragment" |
|
|
|
|
|
|
|
|
|
override fun onCreateView( |
|
|
|
|
inflater: LayoutInflater, |
|
|
|
|
container: ViewGroup?, |
|
|
|
|
savedInstanceState: Bundle? |
|
|
|
|
): View? { |
|
|
|
|
val view = LinearLayout(context) |
|
|
|
|
view.setBackgroundResource(R.color.background) |
|
|
|
|
view.id = R.id.tag1 |
|
|
|
|
container?.addView(view) |
|
|
|
|
return view |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onStart() { |
|
|
|
|
super.onStart() |
|
|
|
|
val dm = DisplayMetrics() |
|
|
|
@ -52,6 +39,18 @@ class MoreConfigDialog : DialogFragment() { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onCreateView( |
|
|
|
|
inflater: LayoutInflater, |
|
|
|
|
container: ViewGroup?, |
|
|
|
|
savedInstanceState: Bundle? |
|
|
|
|
): View? { |
|
|
|
|
val view = LinearLayout(context) |
|
|
|
|
view.setBackgroundResource(R.color.background) |
|
|
|
|
view.id = R.id.tag1 |
|
|
|
|
container?.addView(view) |
|
|
|
|
return view |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { |
|
|
|
|
super.onViewCreated(view, savedInstanceState) |
|
|
|
|
var preferenceFragment = childFragmentManager.findFragmentByTag(readPreferTag) |
|
|
|
|