From f8f86b6145e025b787650f7342675622227f9b24 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 16 Dec 2018 16:39:06 +0000 Subject: [PATCH] color the swipe progress spinner in the accounts summary activity too --- app/src/main/java/net/ktnx/mobileledger/AccountSummary.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java b/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java index 58cdad09..5ad2a57d 100644 --- a/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java +++ b/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java @@ -134,7 +134,9 @@ public class AccountSummary extends AppCompatActivity { if (dy > 0) ((FloatingActionButton) findViewById(R.id.btn_add_transaction)).hide(); } }); - ((SwipeRefreshLayout) findViewById(R.id.account_swiper)).setOnRefreshListener(() -> { + SwipeRefreshLayout swiper = findViewById(R.id.account_swiper); + swiper.setColorSchemeResources(R.color.colorPrimary, R.color.colorAccent); + swiper.setOnRefreshListener(() -> { Log.d("ui", "refreshing accounts via swipe"); update_accounts(true); }); -- 2.39.5