Explorar el Código

Add a subscription to the list

inorichi hace 9 años
padre
commit
970e75e59f

+ 2 - 2
app/src/main/java/eu/kanade/mangafeed/ui/reader/ReaderActivity.java

@@ -192,9 +192,9 @@ public class ReaderActivity extends BaseRxActivity<ReaderPresenter> {
                 .asObservable()
                 .subscribe(this::setStatusBarVisibility));
 
-        preferences.keepScreenOn()
+        subscriptions.add(preferences.keepScreenOn()
                 .asObservable()
-                .subscribe(this::setKeepScreenOn);
+                .subscribe(this::setKeepScreenOn));
     }
 
     private void setOrientation(boolean locked) {