|
|
@ -104,7 +104,10 @@ class AddonsFragment : Fragment() { |
|
|
requireActivity(), |
|
|
requireActivity(), |
|
|
titleId = R.string.addon_notice, |
|
|
titleId = R.string.addon_notice, |
|
|
descriptionId = R.string.addon_notice_description, |
|
|
descriptionId = R.string.addon_notice_description, |
|
|
positiveAction = { addonViewModel.showModInstallPicker(true) } |
|
|
|
|
|
|
|
|
dismissible = false, |
|
|
|
|
|
positiveAction = { addonViewModel.showModInstallPicker(true) }, |
|
|
|
|
|
negativeAction = {}, |
|
|
|
|
|
negativeButtonTitleId = R.string.close |
|
|
).show(parentFragmentManager, MessageDialogFragment.TAG) |
|
|
).show(parentFragmentManager, MessageDialogFragment.TAG) |
|
|
addonViewModel.showModNoticeDialog(false) |
|
|
addonViewModel.showModNoticeDialog(false) |
|
|
} |
|
|
} |
|
|
@ -119,7 +122,8 @@ class AddonsFragment : Fragment() { |
|
|
requireActivity(), |
|
|
requireActivity(), |
|
|
titleId = R.string.confirm_uninstall, |
|
|
titleId = R.string.confirm_uninstall, |
|
|
descriptionId = R.string.confirm_uninstall_description, |
|
|
descriptionId = R.string.confirm_uninstall_description, |
|
|
positiveAction = { addonViewModel.onDeleteAddon(it) } |
|
|
|
|
|
|
|
|
positiveAction = { addonViewModel.onDeleteAddon(it) }, |
|
|
|
|
|
negativeAction = {} |
|
|
).show(parentFragmentManager, MessageDialogFragment.TAG) |
|
|
).show(parentFragmentManager, MessageDialogFragment.TAG) |
|
|
addonViewModel.setAddonToDelete(null) |
|
|
addonViewModel.setAddonToDelete(null) |
|
|
} |
|
|
} |
|
|
|