circularly broadcast application-list-changed event

Description

After added below contents into homescreen-service config.xml file, when using `afm-util remove xxx@version` to uninstall application, afm-main circularly broadcast application-list-changed event.

reference code:
homescreen-service
agl-service-voice-high-capabilities

log:

Environment

None

Activity

Walt Miner 
July 30, 2019 at 9:38 PM

Close for HH 8.0.0 release

jose bollo 
July 17, 2019 at 7:16 AM

The issue is not relative to linked-list. It comes from the implementation of broadcast events that just propagate it.

As I wrote, the circular dependency of APIs is good to have even if it probably reveal an issue in decomposition of APIs. In the case of vshl/asr, we know that the current implementation can be improved by adding some API for removing this circular dependency.

I made a change that fix the issue. I'll clean it and submit it soon.

zhiqiang wang 
July 17, 2019 at 6:17 AM

In my case, delete vshl-capabilities depending on homescreen can solve this issue, but I was interesting in why "homescreen depends on vshl-capabilities that depends on homescreen" could influence af-main, it seems that a linked list has a loop.

jose bollo 
July 16, 2019 at 10:50 AM

homescreen depends on vshl-capabilities that depends on homescreen etc.

Should we forbid such loop? I'm not sure and would like to provide a solution for this kind of problem.

Fixed

Details

Assignee

Reporter

Labels

Contract ID

Affects versions

Priority

Created July 10, 2019 at 7:21 AM
Updated September 19, 2019 at 12:06 PM
Resolved July 25, 2019 at 7:33 AM