Fixed icon dialog for devices under Android O

This commit is contained in:
Jay 2020-02-02 00:07:50 -08:00
parent 3cad9405f9
commit cc81b37f03

View File

@ -603,9 +603,11 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
.title(R.string.icon_shape) .title(R.string.icon_shape)
.negativeButton(android.R.string.cancel) .negativeButton(android.R.string.cancel)
.listItemsSingleChoice ( .listItemsSingleChoice (
items = modes.map { activity?.getString(it) as CharSequence }) items = modes.map { activity?.getString(it) as CharSequence },
waitForPositiveButton = false)
{ _, i, _ -> { _, i, _ ->
(targetController as? MangaInfoController)?.createShortcutForShape(i) (targetController as? MangaInfoController)?.createShortcutForShape(i)
dismissDialog()
} }
} }
} }