Skip to content

Commit fb840a5

Browse files
authored
error: incompatible types: UnityPlayer cannot be converted to FrameLayout
1 parent 7bed755 commit fb840a5

File tree

1 file changed

+1
-1
lines changed
  • android/src/main/java/com/azesmwayreactnativeunity

1 file changed

+1
-1
lines changed

android/src/main/java/com/azesmwayreactnativeunity/UPlayer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public FrameLayout requestFrame() throws NoSuchMethodException {
9797

9898
return (FrameLayout) getFrameLayout.invoke(unityPlayer);
9999
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
100-
return unityPlayer;
100+
return (FrameLayout) this.requestFrame();
101101
}
102102
}
103103

0 commit comments

Comments
 (0)