Removed deprecated requireFragmentManager() method

This commit is contained in:
MohitMaliFtechiz 2023-05-26 14:53:17 +05:30 committed by Kelson
parent 1148c04ae6
commit 04dbbfd48e
2 changed files with 2 additions and 2 deletions

View File

@ -551,7 +551,7 @@ class OnlineLibraryFragment : BaseFragment(), FragmentActivityExtensions {
.apply {
onSelectAction = ::storeDeviceInPreferences
}
.show(requireFragmentManager(), getString(R.string.pref_storage))
.show(parentFragmentManager, getString(R.string.pref_storage))
private fun showStorageConfigureDialog() {
alertDialogShower.show(

View File

@ -139,7 +139,7 @@ class AddNoteDialog : DialogFragment() {
private fun onFailureToCreateAddNoteDialog() {
context.toast(R.string.error_file_not_found, Toast.LENGTH_LONG)
closeKeyboard()
requireFragmentManager().beginTransaction().remove(this).commit()
parentFragmentManager.beginTransaction().remove(this).commit()
}
override fun onCreateView(