@iternio/react-native-auto-play 0.0.7 → 0.0.8

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.
@@ -88,6 +88,11 @@ class VirtualRenderer(
88
88
  var visibleArea = Rect(0, 0, 0, 0)
89
89
 
90
90
  override fun onSurfaceAvailable(surfaceContainer: SurfaceContainer) {
91
+ if (surfaceContainer.surface == null) {
92
+ Log.w(TAG, "surface is null")
93
+ return
94
+ }
95
+
91
96
  val manager = context.getSystemService(Context.DISPLAY_SERVICE) as DisplayManager
92
97
  val virtualDisplay = manager.createVirtualDisplay(
93
98
  moduleName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iternio/react-native-auto-play",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Android Auto and Apple CarPlay for react-native",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",