]> git.ktnx.net Git - mobile-ledger.git/commitdiff
leave progress bar there, just hidden
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 21 Dec 2018 20:20:42 +0000 (20:20 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 21 Dec 2018 20:20:42 +0000 (20:20 +0000)
it is a bit ugly to let the scroller top jump around

app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java
app/src/main/res/layout/transaction_list_fragment.xml

index 9a4ef74eade66afa671cbb9ab5f7104b3a80b60d..b1dd3756f1a4c79a2063656ab38c1fdf1f3975e9 100644 (file)
@@ -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) {
index 2cd0d99d5d76b67afe42442985dcbdf6dea0e39a..ef5f446e621074764aeb6c0f31388b6e15c00cf6 100644 (file)
@@ -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" />