From 970e75e59ff7bbac20201982e1213a374f5ecb67 Mon Sep 17 00:00:00 2001 From: inorichi Date: Sat, 21 Nov 2015 03:39:45 +0100 Subject: [PATCH] Add a subscription to the list --- .../java/eu/kanade/mangafeed/ui/reader/ReaderActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/reader/ReaderActivity.java b/app/src/main/java/eu/kanade/mangafeed/ui/reader/ReaderActivity.java index c50ee71d17..cea52c4e1d 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/reader/ReaderActivity.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/reader/ReaderActivity.java @@ -192,9 +192,9 @@ public class ReaderActivity extends BaseRxActivity { .asObservable() .subscribe(this::setStatusBarVisibility)); - preferences.keepScreenOn() + subscriptions.add(preferences.keepScreenOn() .asObservable() - .subscribe(this::setKeepScreenOn); + .subscribe(this::setKeepScreenOn)); } private void setOrientation(boolean locked) {