Removed bottom sheet dialog for Activity leaks
This commit is contained in:
parent
162535e3dd
commit
58dc709a7e
19 changed files with 27 additions and 29 deletions
|
@ -65,7 +65,7 @@ object AppRater {
|
|||
}
|
||||
|
||||
private fun showRateDialog(context: Context, editor: SharedPreferences.Editor) {
|
||||
MaterialDialog(context, BottomSheet(LayoutMode.WRAP_CONTENT))
|
||||
MaterialDialog(context)
|
||||
.show {
|
||||
|
||||
cornerRadius(PreferenceUtil.getInstance(context).dialogCorner)
|
||||
|
|
|
@ -75,7 +75,7 @@ class RingtoneManager(val context: Context) {
|
|||
}
|
||||
|
||||
fun getDialog(context: Context): MaterialDialog {
|
||||
return MaterialDialog(context, BottomSheet(LayoutMode.WRAP_CONTENT)).show {
|
||||
return MaterialDialog(context).show {
|
||||
cornerRadius(PreferenceUtil.getInstance(context).dialogCorner)
|
||||
title(R.string.dialog_title_set_ringtone)
|
||||
message(R.string.dialog_message_set_ringtone)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue