]> git.ktnx.net Git - mobile-ledger.git/commitdiff
color the swipe progress spinner in the accounts summary activity too
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 16 Dec 2018 16:39:06 +0000 (16:39 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 16 Dec 2018 16:39:06 +0000 (16:39 +0000)
app/src/main/java/net/ktnx/mobileledger/AccountSummary.java

index 58cdad09ae8b5f4fe3796af63ce770c988c0108d..5ad2a57d8589c1490f7a251333a6411e1b0a17ac 100644 (file)
@@ -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);
         });