diff options
author | Wileen Chiu <wileenc@quicinc.com> | 2020-09-10 13:36:52 -0700 |
---|---|---|
committer | Wileen Chiu <wileenc@quicinc.com> | 2020-09-21 11:36:04 -0700 |
commit | e305baa0749a16828e55c08fe5bf1b1073c43bd1 (patch) | |
tree | a3a5791b00d29f57906fd5238f8e64d092a1e636 /libs | |
parent | 7fb5deb7795950a9fb20fc6e38e47ed37011b935 (diff) |
TelephonyRegistry: Avoid adding duplicate listener
- Currently, a new callback is created when a listener
is passed in, so it is possible to create multiple
callbacks for the same listener
- However, when removing the listener, only the latest
entry is removed, which could result in improper cleanup
- If a listener is already in the map, do not add the listener
with the new callback
Change-Id: I46f344eb55db38916224f7765cd838347ac8f0f2
Bug: 168886894
Diffstat (limited to 'libs')
0 files changed, 0 insertions, 0 deletions