Skip to content

Commit

Permalink
Fix pull to refresh
Browse files Browse the repository at this point in the history
You can't just remove all views from pull refresh layout as that also discards the refresh circle.
  • Loading branch information
Slion committed Jan 27, 2024
1 parent 1aaa0cb commit 2ace52d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/fulguris/activity/WebBrowserActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2761,10 +2761,10 @@ abstract class WebBrowserActivity : ThemedBrowserActivity(),
iTabViewContainerFront.resetTarget() // Needed to make it work together with swipe to refresh
aView.requestFocus()
} else {
// Remove place holder
iPlaceHolder?.removeFromParent()
// Prepare our back view container then
iTabViewContainerBack.resetTarget() // Needed to make it work together with swipe to refresh
// Remove place holder
iTabViewContainerBack.removeAllViews()
// Same as above, make sure you specify layout params when adding you web view
iTabViewContainerBack.addView(aView, MATCH_PARENT)
aView.requestFocus()
Expand Down

0 comments on commit 2ace52d

Please sign in to comment.