@craft-native/android 0.0.210 → 0.0.212

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craft-native/android",
3
- "version": "0.0.210",
3
+ "version": "0.0.212",
4
4
  "homepage": "https://github.com/craft-native/craft/tree/main/packages/android#readme",
5
5
  "repository": {
6
6
  "type": "git",
@@ -142,7 +142,7 @@ import kotlin.math.pow
142
142
 
143
143
  private const val CRAFT_NATIVE_CAPABILITY_TIMEOUT_MS = 30_000L
144
144
 
145
- private fun craftNativeOptionalString(value: Any?): String? = value
145
+ internal fun craftNativeOptionalString(value: Any?): String? = value
146
146
  ?.takeUnless { it == JSONObject.NULL }
147
147
  ?.toString()
148
148
  ?.takeUnless { it == "null" || it == "undefined" }
@@ -2515,7 +2515,7 @@ private class CraftNativeScrollView(context: Context) : SwipeRefreshLayout(conte
2515
2515
  }
2516
2516
 
2517
2517
  scroller.setOnScrollChangeListener { _, x, y, _, _ ->
2518
- if (!horizontal) updateStickyHeaders()
2518
+ if (horizontalMode != true) updateStickyHeaders()
2519
2519
  onScroll?.invoke(x, y)
2520
2520
  }
2521
2521
  scroller.setOnTouchListener { _, event ->
@@ -6222,7 +6222,7 @@ class MainActivity : AppCompatActivity() {
6222
6222
  else -> 400
6223
6223
  }
6224
6224
  view.typeface = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
6225
- Typeface.create("sans-serif", weight, false)
6225
+ Typeface.create(Typeface.create("sans-serif", Typeface.NORMAL), weight, false)
6226
6226
  } else {
6227
6227
  Typeface.create("sans-serif", if (weight >= 600) Typeface.BOLD else Typeface.NORMAL)
6228
6228
  }