diff --git a/app/build.gradle b/app/build.gradle index 6fb156377..d629e5d7a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.m2049r.xmrwallet" minSdkVersion 21 targetSdkVersion 31 - versionCode 3110 - versionName "3.1.1 'Fluorine Fermi'" + versionCode 3120 + versionName "3.1.2 'Fluorine Fermi'" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" externalNativeBuild { cmake { diff --git a/app/src/main/java/com/m2049r/xmrwallet/WalletFragment.java b/app/src/main/java/com/m2049r/xmrwallet/WalletFragment.java index e8066ff2e..dc43045e4 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/WalletFragment.java +++ b/app/src/main/java/com/m2049r/xmrwallet/WalletFragment.java @@ -447,6 +447,7 @@ private void updateStatus(Wallet wallet) { String sync; if (!activityCallback.hasBoundService()) throw new IllegalStateException("WalletService not bound."); + ivSynced.setVisibility(View.GONE); Wallet.ConnectionStatus daemonConnected = activityCallback.getConnectionStatus(); if (daemonConnected == Wallet.ConnectionStatus.ConnectionStatus_Connected) { if (!wallet.isSynchronized()) { @@ -460,7 +461,6 @@ private void updateStatus(Wallet wallet) { int x = 100 - Math.round(100f * n / (1f * daemonHeight - firstBlock)); if (x == 0) x = 101; // indeterminate setProgress(x); - ivSynced.setVisibility(View.INVISIBLE); } else { sync = getString(R.string.status_synced) + " " + formatter.format(wallet.getBlockChainHeight()); ivSynced.setVisibility(View.VISIBLE); diff --git a/app/src/main/res/layout/fragment_wallet.xml b/app/src/main/res/layout/fragment_wallet.xml index 9028ceaa5..35bf93065 100644 --- a/app/src/main/res/layout/fragment_wallet.xml +++ b/app/src/main/res/layout/fragment_wallet.xml @@ -26,7 +26,7 @@ @@ -36,7 +36,7 @@ android:layout_height="wrap_content" android:layout_marginEnd="8dp" android:src="@drawable/ic_done_all" - android:visibility="invisible" /> + android:visibility="gone" />