|
|
@ -51,8 +51,7 @@ class ReadAloudConfigDialog : DialogFragment() { |
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { |
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { |
|
|
|
super.onViewCreated(view, savedInstanceState) |
|
|
|
super.onViewCreated(view, savedInstanceState) |
|
|
|
var preferenceFragment = childFragmentManager.findFragmentByTag(readAloudPreferTag) |
|
|
|
var preferenceFragment = childFragmentManager.findFragmentByTag(readAloudPreferTag) |
|
|
|
if (preferenceFragment == null) preferenceFragment = |
|
|
|
if (preferenceFragment == null) preferenceFragment = ReadAloudPreferenceFragment() |
|
|
|
ReadAloudPreferenceFragment() |
|
|
|
|
|
|
|
childFragmentManager.beginTransaction() |
|
|
|
childFragmentManager.beginTransaction() |
|
|
|
.replace(view.id, preferenceFragment, readAloudPreferTag) |
|
|
|
.replace(view.id, preferenceFragment, readAloudPreferTag) |
|
|
|
.commit() |
|
|
|
.commit() |
|
|
|