|Assignee:||Espen Solbu||% Done:|
|Target version:||2.0 Multiple models|
Note, two channels is added to the modelMap, but only one of them is stored in the database
#1 Updated by Hans Cappelle about 6 years ago
I debugged this but didn't fix it since I'm not sure what the desired behavior is. I added some toString() methods though. What happens is that FrSkyServer.addChannel() is called twice.
from: ActivityChannelConfig.applyChannel() line: 326
Where the channelId is still -1 so a db insert is done and the channel is added to the map you refer to.
from: ActivityModelConfig.onActivityResult(int, int, Intent) line: 342
Where the channelId now is known so no more db insert but still added to the map (second time).
#2 Updated by Espen Solbu about 6 years ago
thanks, I try to get it fixed today. I think probably just remove the second call, as there is no longer a need to update the channellist for the model (used to be when it was in the database) Just need to verify proper behaviour when editing "new channel" vs "existing channel"