From bd9c0f527cc4f7aa240fbd053dbc1d188e34f45c Mon Sep 17 00:00:00 2001 From: tom79 Date: Sat, 30 Sep 2017 09:01:36 +0200 Subject: [PATCH] fixes in copy/past --- .../mastodon/services/StreamingLocalTimelineService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/services/StreamingLocalTimelineService.java b/app/src/main/java/fr/gouv/etalab/mastodon/services/StreamingLocalTimelineService.java index 2d63b909d..4d6c38f0d 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/services/StreamingLocalTimelineService.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/services/StreamingLocalTimelineService.java @@ -72,8 +72,8 @@ public class StreamingLocalTimelineService extends IntentService { public void onCreate() { super.onCreate(); SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE); - boolean display_global = sharedpreferences.getBoolean(Helper.SET_DISPLAY_GLOBAL, true); - if( !display_global){ + boolean display_local = sharedpreferences.getBoolean(Helper.SET_DISPLAY_LOCAL, true); + if( !display_local){ stopSelf(); } SharedPreferences.Editor editor = sharedpreferences.edit();