From cb5df0d73fd70fcef22ad6c6bb73a8923794a807 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Tue, 11 Feb 2025 14:39:35 +0200 Subject: [PATCH] UI fixes --- .../org/koitharu/kotatsu/history/ui/HistoryListMenuProvider.kt | 2 +- .../kotlin/org/koitharu/kotatsu/search/ui/MangaListActivity.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/history/ui/HistoryListMenuProvider.kt b/app/src/main/kotlin/org/koitharu/kotatsu/history/ui/HistoryListMenuProvider.kt index 17dd20197..981dd2ca2 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/history/ui/HistoryListMenuProvider.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/history/ui/HistoryListMenuProvider.kt @@ -46,7 +46,7 @@ class HistoryListMenuProvider( } private fun showClearHistoryDialog() { - val selectionListener = RememberSelectionDialogListener(2) + val selectionListener = RememberSelectionDialogListener(1) buildAlertDialog(context, isCentered = true) { setTitle(R.string.clear_history) setSingleChoiceItems( diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/search/ui/MangaListActivity.kt b/app/src/main/kotlin/org/koitharu/kotatsu/search/ui/MangaListActivity.kt index 10d0ad6c3..b7dd3a741 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/search/ui/MangaListActivity.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/search/ui/MangaListActivity.kt @@ -155,7 +155,6 @@ class MangaListActivity : filter.observe().observe(this) { snapshot -> chipSort.setTextAndVisible(snapshot.sortOrder.titleRes) filterBadge.counter = if (snapshot.listFilter.hasNonSearchOptions()) 1 else 0 - supportActionBar?.subtitle = snapshot.listFilter.query } } else { filter.observe().map {