From cc81b37f03f9ce17f626ea1a20327dd218b238ef Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 2 Feb 2020 00:07:50 -0800 Subject: [PATCH] Fixed icon dialog for devices under Android O --- .../eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt index f3b74bd263..fd0d0ead37 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt @@ -603,9 +603,11 @@ class MangaInfoController : NucleusController(), .title(R.string.icon_shape) .negativeButton(android.R.string.cancel) .listItemsSingleChoice ( - items = modes.map { activity?.getString(it) as CharSequence }) + items = modes.map { activity?.getString(it) as CharSequence }, + waitForPositiveButton = false) { _, i, _ -> (targetController as? MangaInfoController)?.createShortcutForShape(i) + dismissDialog() } } }