From 0210ee87477a6703802bc7b932ff403213369398 Mon Sep 17 00:00:00 2001 From: len Date: Sat, 10 Jun 2017 16:49:40 +0200 Subject: [PATCH] Fix #819. Update support lib --- app/build.gradle | 2 +- .../eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt | 3 ++- .../eu/kanade/tachiyomi/ui/manga/track/TrackController.kt | 6 ++++++ build.gradle | 3 ++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5945298e5b..055a572773 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -105,7 +105,7 @@ dependencies { compile 'com.github.inorichi:junrar-android:634c1f5' // Android support library - final support_library_version = '25.3.1' + final support_library_version = '25.4.0' compile "com.android.support:support-v4:$support_library_version" compile "com.android.support:appcompat-v7:$support_library_version" compile "com.android.support:cardview-v7:$support_library_version" diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt index b1d3c3cdd9..cac5a12a9c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueController.kt @@ -30,8 +30,8 @@ import eu.kanade.tachiyomi.ui.manga.MangaController import eu.kanade.tachiyomi.util.* import eu.kanade.tachiyomi.widget.AutofitRecyclerView import eu.kanade.tachiyomi.widget.DrawerSwipeCloseListener -import kotlinx.android.synthetic.main.main_activity.* import kotlinx.android.synthetic.main.catalogue_controller.view.* +import kotlinx.android.synthetic.main.main_activity.* import rx.Observable import rx.Subscription import rx.android.schedulers.AndroidSchedulers @@ -170,6 +170,7 @@ open class CatalogueController(bundle: Bundle? = null) : activity?.toolbar?.removeView(spinner) numColumnsSubscription?.unsubscribe() numColumnsSubscription = null + searchViewSubscription?.unsubscribe() searchViewSubscription = null adapter = null spinner = null diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt index 272656137e..363c0fe781 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt @@ -21,6 +21,12 @@ class TrackController : NucleusController(), private var adapter: TrackAdapter? = null + init { + // There's no menu, but this avoids a bug when coming from the catalogue, where the menu + // disappears if the searchview is expanded + setHasOptionsMenu(true) + } + override fun createPresenter(): TrackPresenter { return TrackPresenter((parentController as MangaController).manga!!) } diff --git a/build.gradle b/build.gradle index b021a12b63..66b50e6c4c 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:2.3.1' - classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0' + classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -16,6 +16,7 @@ buildscript { allprojects { repositories { jcenter() + maven { url "https://maven.google.com" } maven { url "https://jitpack.io" } } }