TuyaInc / tuyasmart-home-sdk-react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Android] crash when a device shared

tronginc opened this issue · comments

A share for B an device, so the B's app crashed while A sharing success.

image

Root caused TuyaHomeManagerModule.kt:99

override fun onSharedGroupList(var1: List<GroupBean>) {
            val map = Arguments.createMap()
            map.putArray("groupBeans", 
    TuyaReactUtils.parseToWritableArray(JsonUtils.toJsonArray(var1)))
            map.putString("type", "onSharedGroupList");
            BridgeUtils.homeChange(reactApplicationContext, map, params.getString("homeId"))
}

I will fix it

it's done