From 58b16ee15a247ff2da07180de882033c1cc94ed2 Mon Sep 17 00:00:00 2001 From: alduzy Date: Tue, 12 Nov 2024 17:09:22 +0100 Subject: [PATCH] renamed method --- android/src/main/java/com/swmansion/rnscreens/Screen.kt | 4 ++-- android/src/main/java/com/swmansion/rnscreens/ext/ViewExt.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/com/swmansion/rnscreens/Screen.kt b/android/src/main/java/com/swmansion/rnscreens/Screen.kt index a2259e330f..f0914eda27 100644 --- a/android/src/main/java/com/swmansion/rnscreens/Screen.kt +++ b/android/src/main/java/com/swmansion/rnscreens/Screen.kt @@ -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. @@ -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)) } diff --git a/android/src/main/java/com/swmansion/rnscreens/ext/ViewExt.kt b/android/src/main/java/com/swmansion/rnscreens/ext/ViewExt.kt index 2cc8655072..b2e78649cf 100644 --- a/android/src/main/java/com/swmansion/rnscreens/ext/ViewExt.kt +++ b/android/src/main/java/com/swmansion/rnscreens/ext/ViewExt.kt @@ -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