@onekeyfe/react-native-native-list 3.0.113 → 3.0.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,5 +101,6 @@ dependencies {
101
101
  implementation "androidx.recyclerview:recyclerview:1.4.0"
102
102
  implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
103
103
  implementation project(":react-native-nitro-modules")
104
+ implementation project(":onekeyfe_react-native-native-logger")
104
105
  implementation project(":onekeyfe_react-native-image")
105
106
  }
@@ -2961,9 +2961,15 @@ internal class NativeListRowView(
2961
2961
  }
2962
2962
  val visibleSources = sources.take(leadingImages.size)
2963
2963
  val tokenPair = kind == "token" && visibleSources.size > 1
2964
- if (tokenPair) {
2965
- // The network badge intentionally extends past the avatar frame.
2964
+ val hasAccountSelectorBadge =
2965
+ kind == "account" &&
2966
+ (tag as? NativeListItem)?.json?.optString("presentation") == "accountSelector" &&
2967
+ (visual.optJSONArray("overlays")?.length() ?: 0) > 0
2968
+ if (tokenPair || hasAccountSelectorBadge) {
2969
+ // Network badges intentionally extend past the avatar frame.
2966
2970
  clipChildren = false
2971
+ }
2972
+ if (tokenPair) {
2967
2973
  leadingOverlayBackground.visibility = VISIBLE
2968
2974
  leadingOverlayBackground.background = roundedFill(visualBackdropColor, 10f)
2969
2975
  leadingOverlayBackground.layoutParams = FrameLayout.LayoutParams(