commit | a3aec61861b8d1f8e95454b7411f4181614f07b3 | [log] [tgz] |
---|---|---|
author | Gyumin Sim <gyumin@google.com> | Tue Jun 01 13:23:51 2021 +0900 |
committer | Gyumin Sim <gyumin@google.com> | Tue Jun 01 21:20:05 2021 +0900 |
tree | 5f0c0a53c4d8003da139eeebe0e9d183fe557042 | |
parent | a0ecdaafd516b94f59d420a86b3632eaa9de55aa [diff] |
Ensure MediaSession2Record is initialized before used NPE happens at mController.close() if session is destroyed while the MediaController2 instance is being created in the constructor of MediaSession2Record. It ensures the MediaSession2Record instance is initialized before the instance is used by Controller2Callback. Bug: 189119798 Fix: 189119798 Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest Change-Id: I23ca2f3dbc657ac38f4154a0fb428a4c25e6b5ad