From b3fd4e58a7a24ba851b6144938a6011b39bb1fa5 Mon Sep 17 00:00:00 2001 From: Cuong-Tran Date: Sun, 1 Sep 2024 04:08:19 +0700 Subject: [PATCH] update changelog --- .../main/java/eu/kanade/presentation/browse/FeedScreen.kt | 4 ++++ .../eu/kanade/tachiyomi/ui/browse/feed/FeedScreenModel.kt | 2 ++ app/src/main/res/raw/changelog_preview.xml | 7 ++++++- .../tachiyomi/data/source/FeedSavedSearchRepositoryImpl.kt | 5 +++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/presentation/browse/FeedScreen.kt b/app/src/main/java/eu/kanade/presentation/browse/FeedScreen.kt index 9f60de4e28..2119ba4467 100644 --- a/app/src/main/java/eu/kanade/presentation/browse/FeedScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/browse/FeedScreen.kt @@ -58,6 +58,7 @@ import tachiyomi.presentation.core.i18n.stringResource import tachiyomi.presentation.core.screens.EmptyScreen import tachiyomi.presentation.core.screens.LoadingScreen import tachiyomi.presentation.core.util.plus +import timber.log.Timber import kotlin.time.Duration.Companion.seconds data class FeedItemUI( @@ -130,6 +131,9 @@ fun FeedScreen( subtitle = item.subtitle, onLongClick = { // KMK --> + Timber.e("Current feed: ${item.title}") + Timber.e("Prev feed: ${prevFeed?.title}") + Timber.e("Next feed: ${nextFeed?.title}") onLongClickFeed(item, prevFeed?.feed, nextFeed?.feed) // KMK <-- }, diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/feed/FeedScreenModel.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/feed/FeedScreenModel.kt index d72df0b575..2081d5a395 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/feed/FeedScreenModel.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/feed/FeedScreenModel.kt @@ -45,6 +45,7 @@ import tachiyomi.domain.source.interactor.SwapFeedOrder import tachiyomi.domain.source.model.FeedSavedSearch import tachiyomi.domain.source.model.SavedSearch import tachiyomi.domain.source.service.SourceManager +import timber.log.Timber import uy.kohesive.injekt.Injekt import uy.kohesive.injekt.api.get import xyz.nulldev.ts.api.http.serializer.FilterSerializer @@ -216,6 +217,7 @@ open class FeedScreenModel( // KMK --> fun swapFeedOrder(feed1: FeedSavedSearch, feed2: FeedSavedSearch) { + Timber.e("Swap feed order: ${feed1.id}@${feed1.feedOrder} <-> ${feed2.id}@${feed2.feedOrder}") screenModelScope.launchNonCancellable { swapFeedOrder.swapOrder(feed1, feed2) } diff --git a/app/src/main/res/raw/changelog_preview.xml b/app/src/main/res/raw/changelog_preview.xml index b6218aa516..02157ba758 100644 --- a/app/src/main/res/raw/changelog_preview.xml +++ b/app/src/main/res/raw/changelog_preview.xml @@ -1,5 +1,10 @@ + + [b]Hot Fix:[/b] fix extension won't update + [b]Hot Fix:[/b] ext obsolete status + [b]New:[/b] Add source search, icon & flag on Feed adding dialog + [b]New:[/b] Showing source icon in library [b]New:[/b] Use language flags @@ -11,7 +16,7 @@ [b]New:[/b] Add "show entry" action to download notifications [b]New:[/b] Add option to skip downloading duplicate read chapters [b]New:[/b] Delete duplicate downloaded chapters when they are automatically marked as read - [b]New:[/b] Remove built-in Komikku repo, instead allow adding it as default + [b]New:[/b] Remove the UNOFFICIAL status, remove built-in Komikku repo, instead allow adding it as default [b]Improve:[/b] Show same extension from multiple repos & show their repo's name [b]Improve:[/b] Rename Related Titles to Suggestions [b]Improve:[/b] Add more auto backup hours diff --git a/data/src/main/java/tachiyomi/data/source/FeedSavedSearchRepositoryImpl.kt b/data/src/main/java/tachiyomi/data/source/FeedSavedSearchRepositoryImpl.kt index 4bc284bda4..5f99a3ced6 100644 --- a/data/src/main/java/tachiyomi/data/source/FeedSavedSearchRepositoryImpl.kt +++ b/data/src/main/java/tachiyomi/data/source/FeedSavedSearchRepositoryImpl.kt @@ -1,6 +1,8 @@ package tachiyomi.data.source import kotlinx.coroutines.flow.Flow +import logcat.LogPriority +import logcat.logcat import tachiyomi.data.DatabaseHandler import tachiyomi.domain.source.model.FeedSavedSearch import tachiyomi.domain.source.model.SavedSearch @@ -87,6 +89,9 @@ class FeedSavedSearchRepositoryImpl( // KMK --> override suspend fun swapOrder(feed1: FeedSavedSearch, feed2: FeedSavedSearch) { + logcat(priority = LogPriority.ERROR) { + "Swap feed order: ${feed1.id}@${feed1.feedOrder} <-> ${feed2.id}@${feed2.feedOrder}" + } return handler.await(true) { feed_saved_searchQueries.setOrder( id = feed2.id,