From: Damyan Ivanov Date: Fri, 21 Dec 2018 20:20:42 +0000 (+0000) Subject: leave progress bar there, just hidden X-Git-Tag: v0.3~182 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=8297cc53a98875b87a810a656d37bf3d9268a14d;p=mobile-ledger.git leave progress bar there, just hidden it is a bit ugly to let the scroller top jump around --- 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" />