Skip to content

Commit 91eda72

Browse files
iamanbansaliamareebjamal
authored andcommitted
fix: events refresh (#2016)
1 parent 8616e28 commit 91eda72

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/src/main/java/org/fossasia/openevent/general/event/EventsFragment.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,13 @@ class EventsFragment : Fragment(), BottomIconDoubleClick {
206206
}
207207

208208
override fun onDestroyView() {
209-
super.onDestroyView()
209+
rootView.swiperefresh.setOnRefreshListener(null)
210210
eventsListAdapter.apply {
211211
onEventClick = null
212212
onFavFabClick = null
213213
onHashtagClick = null
214214
}
215+
super.onDestroyView()
215216
}
216217

217218
private fun moveToNotification() =
@@ -247,10 +248,5 @@ class EventsFragment : Fragment(), BottomIconDoubleClick {
247248
}
248249
}
249250

250-
override fun onStop() {
251-
rootView.swiperefresh.setOnRefreshListener(null)
252-
super.onStop()
253-
}
254-
255251
override fun doubleClick() = rootView.scrollView.smoothScrollTo(0, 0)
256252
}

0 commit comments

Comments
 (0)