|
|
@ -942,9 +942,12 @@ abstract class BaseBrowserFragment :
|
|
|
|
binding.swipeRefresh.isEnabled = shouldPullToRefreshBeEnabled(false)
|
|
|
|
binding.swipeRefresh.isEnabled = shouldPullToRefreshBeEnabled(false)
|
|
|
|
|
|
|
|
|
|
|
|
if (binding.swipeRefresh.isEnabled) {
|
|
|
|
if (binding.swipeRefresh.isEnabled) {
|
|
|
|
val primaryTextColor =
|
|
|
|
val primaryTextColor = ThemeManager.resolveAttribute(R.attr.textPrimary, context)
|
|
|
|
ThemeManager.resolveAttribute(R.attr.textPrimary, context)
|
|
|
|
val primaryBackgroundColor = ThemeManager.resolveAttribute(R.attr.layer2, context)
|
|
|
|
binding.swipeRefresh.setColorSchemeColors(primaryTextColor)
|
|
|
|
binding.swipeRefresh.apply {
|
|
|
|
|
|
|
|
setColorSchemeResources(primaryTextColor)
|
|
|
|
|
|
|
|
setProgressBackgroundColorSchemeResource(primaryBackgroundColor)
|
|
|
|
|
|
|
|
}
|
|
|
|
swipeRefreshFeature.set(
|
|
|
|
swipeRefreshFeature.set(
|
|
|
|
feature = SwipeRefreshFeature(
|
|
|
|
feature = SwipeRefreshFeature(
|
|
|
|
requireComponents.core.store,
|
|
|
|
requireComponents.core.store,
|
|
|
|