diff options
author | Wileen Chiu <wileenc@codeaurora.org> | 2020-09-10 13:36:52 -0700 |
---|---|---|
committer | Wileen Chiu <wileenc@codeaurora.org> | 2020-09-16 15:17:04 -0700 |
commit | d5967a9bde1760ec73cc2d53a05b604c92578d26 (patch) | |
tree | 69230c0012318fd75b90b7cb58a1fea7600aae28 /rs/java/android/renderscript/ProgramStore.java | |
parent | 0db0eaba7905c1276b4141d1a75dbc59a460a1c6 (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
CRs-Fixed: 2778760
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions