From f331b24386514d56ea0aa1cbc4fc342330741793 Mon Sep 17 00:00:00 2001 From: CarlosEsco Date: Wed, 22 Apr 2020 11:19:34 -0400 Subject: [PATCH] code should hide this button if the dialog was not tracked. currently it just adds blue action color but always shows --- .../eu/kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt index 0a555cbab5..c40a217df1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt @@ -64,7 +64,9 @@ class TrackSearchDialog : DialogController { customView(viewRes = R.layout.track_search_dialog, scrollable = false) negativeButton(android.R.string.cancel) positiveButton(R.string.clear) { onPositiveButtonClick() } - setActionButtonEnabled(WhichButton.POSITIVE, wasPreviouslyTracked) + if (wasPreviouslyTracked) { + positiveButton(R.string.clear) { onPositiveButtonClick() } + } } if (subscriptions.isUnsubscribed) {