1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-05-13 14:36:32 +02:00

Let GC take care of the presenter. Also fix

This commit is contained in:
inorichi 2017-08-29 09:55:42 +02:00
parent e6ff9e18cc
commit ecfe72bcad
2 changed files with 1 additions and 2 deletions
app/src/main
AndroidManifest.xml
java/eu/kanade/tachiyomi/ui/base/presenter

@ -21,7 +21,7 @@
android:theme="@style/Theme.Tachiyomi"> android:theme="@style/Theme.Tachiyomi">
<activity <activity
android:name=".ui.main.MainActivity" android:name=".ui.main.MainActivity"
android:launchMode="singleTask"> android:launchMode="singleTop">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

@ -61,7 +61,6 @@ public class NucleusConductorDelegate<P extends Presenter> {
void onDestroy() { void onDestroy() {
if (presenter != null) { if (presenter != null) {
presenter.destroy(); presenter.destroy();
presenter = null;
} }
} }
} }