theme all swipe to refresh layouts

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-07-28 17:00:09 +02:00
parent b9e9c35df5
commit e3c535722d
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 4 additions and 5 deletions

View File

@ -623,9 +623,9 @@ class ContactsController(args: Bundle) :
binding.controllerGenericRv.recyclerView.setHasFixedSize(true)
binding.controllerGenericRv.recyclerView.adapter = adapter
binding.controllerGenericRv.swipeRefreshLayout.setOnRefreshListener { fetchData() }
binding.controllerGenericRv.swipeRefreshLayout.setColorSchemeResources(R.color.colorPrimary)
binding.controllerGenericRv.swipeRefreshLayout
.setProgressBackgroundColorSchemeResource(R.color.refresh_spinner_background)
viewThemeUtils.themeSwipeRefreshLayout(binding.controllerGenericRv.swipeRefreshLayout)
binding.joinConversationViaLink.joinConversationViaLinkImageView
.background
.setColorFilter(

View File

@ -783,8 +783,7 @@ public class ConversationsListController extends BaseController implements Flexi
});
swipeRefreshLayout.setOnRefreshListener(() -> fetchData());
swipeRefreshLayout.setColorSchemeResources(R.color.colorPrimary);
swipeRefreshLayout.setProgressBackgroundColorSchemeResource(R.color.refresh_spinner_background);
viewThemeUtils.themeSwipeRefreshLayout(swipeRefreshLayout);
emptyLayoutView.setOnClickListener(v -> showNewConversationsScreen());
floatingActionButton.setOnClickListener(v -> {