commit | e48ac5bb09a7b259c937e8f3ff3c0057269e35d4 | [log] [tgz] |
---|---|---|
author | Iván Budnik <ivanbuper@google.com> | Wed Jan 10 15:18:27 2024 +0000 |
committer | Iván Budnik <ivanbuper@google.com> | Wed Jan 10 18:16:13 2024 +0000 |
tree | 912e1d3f1be8427d13b178ff3e0c9bdae4437b80 | |
parent | e799141c5775987f368d0664e760a26065e5d9c6 [diff] |
Register proxy router after ProxyMediaRouter2Impl has been created Previously, the registration was done in the constructor, which could result in a race condition between the assignment of mImpl and a binder call from system server, causing an NPE in some cases. Found via ag/25274839 presubmit crash detector. Bug: 309451111 Test: atest CtsMediaBetterTogetherTestCases Change-Id: Ifef8e7202cbfe3f961ac802c8f39d757b0b9c645