From b79250485410140b2540066b75e93438fa7e47be Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Tue, 23 Mar 2021 13:16:26 -0400 Subject: [PATCH] Various updates to Browse Tab Changed filter languages button to a globe and now says "filter languages" Fix source migration not animated between sources and manga Leaving the migration tab sends you back to source migration list --- .../tachiyomi/ui/extension/ExtensionBottomSheet.kt | 7 +++++-- app/src/main/res/drawable/ic_bookmark_24dp.xml | 10 +++++----- app/src/main/res/drawable/ic_language_24dp.xml | 10 ++++++++++ app/src/main/res/menu/extension_main.xml | 11 ++++++----- app/src/main/res/values/strings.xml | 1 + 5 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 app/src/main/res/drawable/ic_language_24dp.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionBottomSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionBottomSheet.kt index 8749dafd3e..c01f148485 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionBottomSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionBottomSheet.kt @@ -128,6 +128,9 @@ class ExtensionBottomSheet @JvmOverloads constructor(context: Context, attrs: At 0 -> extensionFrameLayout else -> migrationFrameLayout }.recycler?.isNestedScrollingEnabled = false + if (tab?.position == 1) { + presenter.deselectSource() + } } override fun onTabReselected(tab: TabLayout.Tab?) { this@ExtensionBottomSheet.sheetBehavior?.expand() @@ -260,7 +263,7 @@ class ExtensionBottomSheet @JvmOverloads constructor(context: Context, attrs: At migRecyler.adapter = migAdapter migAdapter?.fastScroller = migrationFrameLayout.fast_scroller } - migAdapter?.updateDataSet(sources) + migAdapter?.updateDataSet(sources, true) } fun setMigrationManga(manga: List?) { @@ -270,7 +273,7 @@ class ExtensionBottomSheet @JvmOverloads constructor(context: Context, attrs: At migRecyler.adapter = migAdapter migAdapter?.fastScroller = migrationFrameLayout.fast_scroller } - migAdapter?.updateDataSet(manga) + migAdapter?.updateDataSet(manga, true) } fun drawExtensions() { diff --git a/app/src/main/res/drawable/ic_bookmark_24dp.xml b/app/src/main/res/drawable/ic_bookmark_24dp.xml index 38953e0efa..b70b21beaf 100644 --- a/app/src/main/res/drawable/ic_bookmark_24dp.xml +++ b/app/src/main/res/drawable/ic_bookmark_24dp.xml @@ -1,9 +1,9 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:tint="?attr/actionBarTintColor" + android:viewportHeight="24.0"> diff --git a/app/src/main/res/drawable/ic_language_24dp.xml b/app/src/main/res/drawable/ic_language_24dp.xml new file mode 100644 index 0000000000..6d7cba52fd --- /dev/null +++ b/app/src/main/res/drawable/ic_language_24dp.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/menu/extension_main.xml b/app/src/main/res/menu/extension_main.xml index 5f679a87a2..245c43e221 100644 --- a/app/src/main/res/menu/extension_main.xml +++ b/app/src/main/res/menu/extension_main.xml @@ -1,10 +1,5 @@ - + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2720161d2e..b2cbc28cfd 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -248,6 +248,7 @@ Extensions Extension Updates Extension info + Filter Languages Details Obsolete Pending