From 0da47c409fc36f8198c81493b09ed80fd2a462ec Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 18 Jun 2018 14:20:37 +0100 Subject: [PATCH] Start daemon service immediately app starts (even for first run) --- src/main/java/io/lbry/browser/MainActivity.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/io/lbry/browser/MainActivity.java b/src/main/java/io/lbry/browser/MainActivity.java index 11b5f842..6d86dff9 100644 --- a/src/main/java/io/lbry/browser/MainActivity.java +++ b/src/main/java/io/lbry/browser/MainActivity.java @@ -142,13 +142,9 @@ public class MainActivity extends Activity implements DefaultHardwareBackBtnHand super.onResume(); SharedPreferences sp = getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); - if (!sp.getBoolean("firstRun", true)) { - // We're not showing the welcome page, so it's okay to start the daemon service - // because this is not the first run experience - serviceRunning = isServiceRunning(LbrynetService.class); - if (!serviceRunning) { - ServiceHelper.start(this, "", LbrynetService.class, "lbrynetservice"); - } + serviceRunning = isServiceRunning(LbrynetService.class); + if (!serviceRunning) { + ServiceHelper.start(this, "", LbrynetService.class, "lbrynetservice"); } if (mReactInstanceManager != null) {