Fixed icon dialog for devices under Android O
This commit is contained in:
parent
3cad9405f9
commit
cc81b37f03
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue