Skip to content

Commit

Permalink
renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
alduzy committed Nov 12, 2024
1 parent b8a6075 commit 58b16ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/swmansion/rnscreens/Screen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import com.google.android.material.shape.MaterialShapeDrawable
import com.google.android.material.shape.ShapeAppearanceModel
import com.swmansion.rnscreens.events.HeaderHeightChangeEvent
import com.swmansion.rnscreens.events.SheetDetentChangedEvent
import com.swmansion.rnscreens.ext.isInsideScrollViewWithRemoveClippedSubviews
import com.swmansion.rnscreens.ext.isPossiblyRemovedClippedSubview
import java.lang.ref.WeakReference

@SuppressLint("ViewConstructor") // Only we construct this view, it is never inflated.
Expand Down Expand Up @@ -403,7 +403,7 @@ class Screen(
// removeClippedSubviews set to true (default).
// We add a simple view for each item in the list to make it work as expected.
// See https://github.com/software-mansion/react-native-screens/pull/2383
if (child.isInsideScrollViewWithRemoveClippedSubviews()) {
if (child.isPossiblyRemovedClippedSubview()) {
for (j in 0 until child.childCount) {
child.addView(View(context))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal fun View.maybeBgColor(): Int? {
return null
}

internal fun View.isInsideScrollViewWithRemoveClippedSubviews(): Boolean {
internal fun View.isPossiblyRemovedClippedSubview(): Boolean {
if (this is ReactViewGroup && this.removeClippedSubviews)
{
return true
Expand Down

0 comments on commit 58b16ee

Please sign in to comment.