Skip to content

Commit

Permalink
fix: check for nullability in SummaryProductFragment#resetScroll
Browse files Browse the repository at this point in the history
Should fix #4004
  • Loading branch information
VaiTon committed May 17, 2021
1 parent b3e45c0 commit ff86941
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -922,7 +922,10 @@ class SummaryProductFragment : BaseFragment(), ISummaryProductPresenter.View {
else newFrontImage()



fun resetScroll() {
// TODO: should not check for binding, this should be done in another way
if (!isAdded) return
binding.scrollView.scrollTo(0, 0)
binding.analysisTags.adapter?.let {
(it as IngredientAnalysisTagsAdapter).filterVisibleTags()
Expand Down

0 comments on commit ff86941

Please sign in to comment.