From ecfe72bcadbf16a5c79e4bde56bb8f233b71457a Mon Sep 17 00:00:00 2001 From: inorichi Date: Tue, 29 Aug 2017 09:55:42 +0200 Subject: [PATCH] Let GC take care of the presenter. Also fix #947 --- app/src/main/AndroidManifest.xml | 2 +- .../tachiyomi/ui/base/presenter/NucleusConductorDelegate.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index dd193aca41..660a3b0cc2 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -21,7 +21,7 @@ android:theme="@style/Theme.Tachiyomi"> + android:launchMode="singleTop"> diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/NucleusConductorDelegate.java b/app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/NucleusConductorDelegate.java index 62a50af839..e495069f0e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/NucleusConductorDelegate.java +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/NucleusConductorDelegate.java @@ -61,7 +61,6 @@ public class NucleusConductorDelegate

{ void onDestroy() { if (presenter != null) { presenter.destroy(); - presenter = null; } } }