From 2ca6961e1cced35ea757de804ab78af13977f09c Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:19:51 +0600 Subject: [PATCH] Fix the More tab icon's exit animation --- CHANGELOG.md | 1 + .../eu/kanade/tachiyomi/ui/more/MoreTab.kt | 7 +- ...mated_more.xml => animated_more_enter.xml} | 0 .../main/res/drawable/animated_more_exit.xml | 163 ++++++++++++++++++ 4 files changed, 168 insertions(+), 3 deletions(-) rename app/src/main/res/drawable/{animated_more.xml => animated_more_enter.xml} (100%) create mode 100644 app/src/main/res/drawable/animated_more_exit.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 155f5af8a..dd19e7eb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co - Fixed WebView sending source headers to other sites ([@AntsyLich](https://github.com/AntsyLich)) ([`a01867d`](https://github.com/mihonapp/mihon/commit/a01867d)) - Fixed downloads not showing for entries of a source sharing its name with another source ([@AntsyLich](https://github.com/AntsyLich)) ([`deeb9b2`](https://github.com/mihonapp/mihon/commit/deeb9b2)) - Fixed covers reloading when removing an entry from the library ([@AntsyLich](https://github.com/AntsyLich)) +- Fixed the More tab icon pausing and then bouncing back when leaving the tab ([@AntsyLich](https://github.com/AntsyLich)) ## [v0.21.2] - 2026-10-13 ### Fixed diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreTab.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreTab.kt index 0dfe6cfb0..f2609d28a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreTab.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/more/MoreTab.kt @@ -1,7 +1,6 @@ package eu.kanade.tachiyomi.ui.more import androidx.compose.animation.graphics.res.animatedVectorResource -import androidx.compose.animation.graphics.res.rememberAnimatedVectorPainter import androidx.compose.animation.graphics.vector.AnimatedImageVector import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState @@ -23,6 +22,7 @@ import eu.kanade.core.preference.asState import eu.kanade.domain.base.BasePreferences import eu.kanade.presentation.more.MoreScreen import eu.kanade.presentation.util.Tab +import eu.kanade.presentation.util.rememberAnimatedVectorPainter import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.download.DownloadManager import eu.kanade.tachiyomi.ui.category.CategoryScreen @@ -45,11 +45,12 @@ data object MoreTab : Tab { @Composable get() { val isSelected = LocalTabNavigator.current.current.key == key - val image = AnimatedImageVector.animatedVectorResource(R.drawable.animated_more) + val enter = AnimatedImageVector.animatedVectorResource(R.drawable.animated_more_enter) + val exit = AnimatedImageVector.animatedVectorResource(R.drawable.animated_more_exit) return TabOptions( index = 4u, title = stringResource(MR.strings.label_more), - icon = rememberAnimatedVectorPainter(image, isSelected), + icon = rememberAnimatedVectorPainter(enter, exit, isSelected), ) } diff --git a/app/src/main/res/drawable/animated_more.xml b/app/src/main/res/drawable/animated_more_enter.xml similarity index 100% rename from app/src/main/res/drawable/animated_more.xml rename to app/src/main/res/drawable/animated_more_enter.xml diff --git a/app/src/main/res/drawable/animated_more_exit.xml b/app/src/main/res/drawable/animated_more_exit.xml new file mode 100644 index 000000000..07be41c87 --- /dev/null +++ b/app/src/main/res/drawable/animated_more_exit.xml @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +