From: Damyan Ivanov Date: Sun, 16 Dec 2018 16:39:06 +0000 (+0000) Subject: color the swipe progress spinner in the accounts summary activity too X-Git-Tag: v0.3~213 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=commitdiff_plain;h=f8f86b6145e025b787650f7342675622227f9b24 color the swipe progress spinner in the accounts summary activity too --- 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); });