commit | 07e23a130be67cf94b62581efdf02bfcf6161410 | [log] [tgz] |
---|---|---|
author | Dowon Park <dowon.park@samsung.com> | Fri Oct 18 13:59:41 2019 +0900 |
committer | Dowon Park <dowon.park@samsung.com> | Thu Oct 24 10:45:45 2019 +0900 |
tree | 92af3fb17046723f4e26e235d2f15f0bde7fd00c | |
parent | f5ff124f392ebe4ae2e4cc6ead7a501c49ca4f6c [diff] |
AVRCP: Reset mActivePlayerId on cleanup Sets mActivePlayerId to NO_ACTIVE_PLAYER on cleanup, to avoid a NullPointerException on callbacks after cleanup. This has been observed when AVRCP is stopped but the media button session has just been changed. This leads to the session callback being called on the active player, which has just been cleaned and this is NULL. Test: manual Change-Id: I23aefb1f3ac47dbfdb2b934e5224f8da0f6cb8c8 Signed-off-by: Dowon Park <dowon.park@samsung.com>