소스 검색

Let GC take care of the presenter. Also fix #947

inorichi 7 년 전
부모
커밋
ecfe72bcad
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/src/main/AndroidManifest.xml
  2. 0 1
      app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/NucleusConductorDelegate.java

+ 1 - 1
app/src/main/AndroidManifest.xml

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

+ 0 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/NucleusConductorDelegate.java

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