From a42f750fc4f0c01f15e792c14d39d73945fee7da Mon Sep 17 00:00:00 2001 From: m2049r Date: Wed, 3 May 2023 08:22:23 +0200 Subject: [PATCH] center sync status --- app/build.gradle | 4 ++-- app/src/main/java/com/m2049r/xmrwallet/WalletFragment.java | 2 +- app/src/main/res/layout/fragment_wallet.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6fb15637..d629e5d7 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 e8066ff2..dc43045e 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 @@ public class WalletFragment extends Fragment 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 @@ public class WalletFragment extends Fragment 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 9028ceaa..35bf9306 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" />