File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed
java/com/whyranoid/presentation/community Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,14 @@ internal class CommunityItemFragment :
124
124
125
125
binding.rvCommunity.adapter = postAdapter
126
126
127
- binding.swipeRefreshLayout.setOnRefreshListener {
128
- postAdapter.refresh()
129
- binding.rvCommunity.scrollToPosition(0 )
130
- binding.swipeRefreshLayout.isRefreshing = false
127
+ binding.swipeRefreshLayout.apply {
128
+ setOnRefreshListener {
129
+ postAdapter.refresh()
130
+ binding.rvCommunity.scrollToPosition(0 )
131
+ binding.swipeRefreshLayout.isRefreshing = false
132
+ }
133
+
134
+ setColorSchemeColors(context.getColor(R .color.mogakrun_on_primary))
131
135
}
132
136
133
137
viewLifecycleOwner.repeatWhenUiStarted {
@@ -183,10 +187,14 @@ internal class CommunityItemFragment :
183
187
184
188
binding.rvCommunity.adapter = postAdapter
185
189
186
- binding.swipeRefreshLayout.setOnRefreshListener {
187
- postAdapter.refresh()
188
- binding.rvCommunity.scrollToPosition(0 )
189
- binding.swipeRefreshLayout.isRefreshing = false
190
+ binding.swipeRefreshLayout.apply {
191
+ setOnRefreshListener {
192
+ postAdapter.refresh()
193
+ binding.rvCommunity.scrollToPosition(0 )
194
+ binding.swipeRefreshLayout.isRefreshing = false
195
+ }
196
+
197
+ setColorSchemeColors(context.getColor(R .color.mogakrun_on_primary))
190
198
}
191
199
192
200
viewLifecycleOwner.repeatWhenUiStarted {
Original file line number Diff line number Diff line change 10
10
<androidx .swiperefreshlayout.widget.SwipeRefreshLayout
11
11
android : id =" @+id/swipe_refresh_layout"
12
12
android : layout_width =" match_parent"
13
- android : layout_height =" match_parent" >
13
+ android : layout_height =" match_parent"
14
+ app : swipeRefreshLayoutProgressSpinnerBackgroundColor =" @color/mogakrun_background" >
14
15
15
16
<androidx .constraintlayout.widget.ConstraintLayout
16
17
android : layout_width =" match_parent"
You can’t perform that action at this time.
0 commit comments