Fix depricated issues

This commit is contained in:
h4h13 2020-03-01 17:35:43 +05:30
parent 98ead185d5
commit 6966351113
13 changed files with 46 additions and 60 deletions

View file

@ -45,8 +45,4 @@ abstract class AbsMainActivityFragment : AbsMusicServiceFragment() {
setStatusBarColor(view, ColorUtil.darkenColor(colorPrimary))
}
}
protected fun showMainMenu(option: Int) {
OptionsSheetDialogFragment.newInstance(option).show(childFragmentManager, "Main_Menu")
}
}

View file

@ -121,7 +121,7 @@ abstract class AbsPlayerFragment : AbsMusicServiceFragment(),
return true
}
R.id.action_sleep_timer -> {
SleepTimerDialog().show(requireFragmentManager(), TAG)
SleepTimerDialog().show(parentFragmentManager, TAG)
return true
}
R.id.action_set_as_ringtone -> {