[Chromecast] Do not recreate intent receiver in start
CastWebContentsComponent.start() is called everytime when saying "OKG, play next" before the media app is stopped by a voice command. Because we lose the reference to the old intent receiver, the old one has no chance to unregister from LocalBroadcastManager, which would cause memory leak. Change-Id: Ie16fb82c220c48c5410cf57a6d829b2984880d95 Bug: b/73789608 Test: cast_shell_junit_tests Reviewed-on: https://chromium-review.googlesource.com/933581Reviewed-by:Luke Halliwell <halliwell@chromium.org> Commit-Queue: Zhiheng(Vincent) Li <vincentli@google.com> Cr-Commit-Position: refs/heads/master@{#539904}
Showing
Please register or sign in to comment