diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2021-04-19 23:52:30 +0300 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2021-04-26 16:52:54 +0300 |
commit | e1d4331f16ee925347a05dbcc17af5fe36c399fe (patch) | |
tree | 08fb39622f3d16836365760b9dd61b587abdca7e /app/src | |
parent | 6810bc98d4f4e88b2846839d36b80f75e22e3e1e (diff) |
properly set pull-to-refresh-spinner-background-color
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Diffstat (limited to 'app/src')
4 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java b/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java index 3bc52b54f..cde5fdbca 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java @@ -643,6 +643,7 @@ public class ContactsController extends BaseController implements SearchView.OnQ swipeRefreshLayout.setOnRefreshListener(() -> fetchData(true)); swipeRefreshLayout.setColorSchemeResources(R.color.colorPrimary); + swipeRefreshLayout.setProgressBackgroundColorSchemeResource(R.color.refresh_spinner_background); fastScroller.addOnScrollStateChangeListener(this); adapter.setFastScroller(fastScroller); diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java b/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java index cbb42b409..1b3b025de 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java @@ -522,6 +522,7 @@ public class ConversationsListController extends BaseController implements Searc swipeRefreshLayout.setOnRefreshListener(() -> fetchData(false)); swipeRefreshLayout.setColorSchemeResources(R.color.colorPrimary); + swipeRefreshLayout.setProgressBackgroundColorSchemeResource(R.color.refresh_spinner_background); emptyLayoutView.setOnClickListener(v -> showNewConversationsScreen()); floatingActionButton.setOnClickListener(v -> { diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index cca535763..97450c3dd 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -31,6 +31,7 @@ <!-- App bar --> <color name="appbar">#1E1E1E</color> <color name="fontAppbar">#FFFFFF</color> + <color name="refresh_spinner_background">#222222</color> <!-- general text colors --> <color name="high_emphasis_text">#deffffff</color> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index cc4db82b8..e1d0f2e44 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -32,6 +32,7 @@ <color name="appbar">@android:color/white</color> <color name="fontAppbar">#666666</color> <color name="fontSecondaryAppbar">#A5A5A5</color> + <color name="refresh_spinner_background">#ffffff</color> <!-- general text colors --> <color name="high_emphasis_text">#de000000</color> |