mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-18 03:45:33 -04:00
Removed deprecated requireFragmentManager() method
This commit is contained in:
parent
1148c04ae6
commit
04dbbfd48e
@ -551,7 +551,7 @@ class OnlineLibraryFragment : BaseFragment(), FragmentActivityExtensions {
|
|||||||
.apply {
|
.apply {
|
||||||
onSelectAction = ::storeDeviceInPreferences
|
onSelectAction = ::storeDeviceInPreferences
|
||||||
}
|
}
|
||||||
.show(requireFragmentManager(), getString(R.string.pref_storage))
|
.show(parentFragmentManager, getString(R.string.pref_storage))
|
||||||
|
|
||||||
private fun showStorageConfigureDialog() {
|
private fun showStorageConfigureDialog() {
|
||||||
alertDialogShower.show(
|
alertDialogShower.show(
|
||||||
|
@ -139,7 +139,7 @@ class AddNoteDialog : DialogFragment() {
|
|||||||
private fun onFailureToCreateAddNoteDialog() {
|
private fun onFailureToCreateAddNoteDialog() {
|
||||||
context.toast(R.string.error_file_not_found, Toast.LENGTH_LONG)
|
context.toast(R.string.error_file_not_found, Toast.LENGTH_LONG)
|
||||||
closeKeyboard()
|
closeKeyboard()
|
||||||
requireFragmentManager().beginTransaction().remove(this).commit()
|
parentFragmentManager.beginTransaction().remove(this).commit()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateView(
|
override fun onCreateView(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user