From ddcb190457aa70fd8feb3f94c1a0e2262128f644 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 7 Aug 2020 10:11:57 +0100 Subject: [PATCH] do not display global background servce initializing indicator --- app/build.gradle | 4 ++-- .../java/io/lbry/browser/MainActivity.java | 20 +++++++++---------- app/src/main/res/layout/content_main.xml | 1 + 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 99ed5f8e..6c239c8f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -16,8 +16,8 @@ android { applicationId "io.lbry.browser" minSdkVersion 21 targetSdkVersion 29 - versionCode 1516 - versionName "0.15.16" + versionCode 1517 + versionName "0.15.17" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/io/lbry/browser/MainActivity.java b/app/src/main/java/io/lbry/browser/MainActivity.java index aa82cb97..ab486665 100644 --- a/app/src/main/java/io/lbry/browser/MainActivity.java +++ b/app/src/main/java/io/lbry/browser/MainActivity.java @@ -876,7 +876,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener findViewById(R.id.content_main).setVisibility(View.GONE); findViewById(R.id.floating_balance_main_container).setVisibility(View.GONE); findViewById(R.id.global_now_playing_card).setVisibility(View.GONE); - findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE); + //findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE); findViewById(R.id.app_bar_main_container).setFitsSystemWindows(true); hideActionBar(); @@ -912,9 +912,9 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener if (!(fragment instanceof FileViewFragment) && !inFullscreenMode) { findViewById(R.id.global_now_playing_card).setVisibility(View.VISIBLE); } - if (!Lbry.SDK_READY && !inFullscreenMode) { + /*if (!Lbry.SDK_READY && !inFullscreenMode) { findViewById(R.id.global_sdk_initializing_status).setVisibility(View.VISIBLE); - } + }*/ for (PIPModeListener listener : pipModeListeners) { listener.onExitPIPMode(); } @@ -1011,16 +1011,16 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener serviceRunning = isServiceRunning(this, LbrynetService.class); if (!serviceRunning) { Lbry.SDK_READY = false; - findViewById(R.id.global_sdk_initializing_status).setVisibility(View.VISIBLE); + //findViewById(R.id.global_sdk_initializing_status).setVisibility(View.VISIBLE); ServiceHelper.start(this, "", LbrynetService.class, "lbrynetservice"); } checkSdkReady(); showSignedInUser(); checkPendingOpens(); - if (Lbry.SDK_READY) { + /*if (Lbry.SDK_READY) { findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE); - } + }*/ } private void checkPendingOpens() { @@ -1451,7 +1451,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener if (actionBar != null) { actionBar.hide(); } - findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE); + //findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE); findViewById(R.id.app_bar_main_container).setFitsSystemWindows(false); lockDrawer(); @@ -1482,9 +1482,9 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener appBarMainContainer.setFitsSystemWindows(true); decorView.setSystemUiVisibility(flags); - if (!Lbry.SDK_READY) { + /*if (!Lbry.SDK_READY) { findViewById(R.id.global_sdk_initializing_status).setVisibility(View.VISIBLE); - } + }*/ showFloatingWalletBalance(); ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { @@ -1573,7 +1573,7 @@ public class MainActivity extends AppCompatActivity implements SdkStatusListener checkSyncedWallet(); } - findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE); + //findViewById(R.id.global_sdk_initializing_status).setVisibility(View.GONE); scheduleWalletBalanceUpdate(); scheduleWalletSyncTask(); diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml index 9fd48cf6..6bd21c94 100644 --- a/app/src/main/res/layout/content_main.xml +++ b/app/src/main/res/layout/content_main.xml @@ -42,6 +42,7 @@ android:background="@color/lbryGreen" android:elevation="12dp" android:padding="8dp" + android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent">