From 8297cc53a98875b87a810a656d37bf3d9268a14d Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 21 Dec 2018 20:20:42 +0000 Subject: [PATCH] leave progress bar there, just hidden it is a bit ugly to let the scroller top jump around --- .../java/net/ktnx/mobileledger/TransactionListActivity.java | 2 +- app/src/main/res/layout/transaction_list_fragment.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java b/app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java index 9a4ef74e..b1dd3756 100644 --- a/app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java @@ -138,7 +138,7 @@ public class TransactionListActivity extends AppCompatActivity { } public void onRetrieveDone(boolean success) { - progressBar.setVisibility(View.GONE); + progressBar.setVisibility(View.INVISIBLE); swiper.setRefreshing(false); updateLastUpdateText(); if (success) { diff --git a/app/src/main/res/layout/transaction_list_fragment.xml b/app/src/main/res/layout/transaction_list_fragment.xml index 2cd0d99d..ef5f446e 100644 --- a/app/src/main/res/layout/transaction_list_fragment.xml +++ b/app/src/main/res/layout/transaction_list_fragment.xml @@ -60,7 +60,7 @@ android:indeterminate="true" android:indeterminateBehavior="cycle" android:progressTint="@color/colorPrimary" - android:visibility="gone" + android:visibility="invisible" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/last_update_row" /> -- 2.39.5