Merge "Fix flaky media key event related CTS tests" into rvc-dev am: 7feac4ed47 am: 1d658df5e3 am: f032d382ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12004926 Change-Id: Idadfd4fe31b2be02c0aa73a89a52b599ea5e161b
This commit is contained in:
@@ -404,7 +404,7 @@ public class MediaSession2 implements AutoCloseable {
|
|||||||
mCallback.onPostConnect(MediaSession2.this, controllerInfo);
|
mCallback.onPostConnect(MediaSession2.this, controllerInfo);
|
||||||
connected = true;
|
connected = true;
|
||||||
} finally {
|
} finally {
|
||||||
if (!connected) {
|
if (!connected || isClosed()) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Log.d(TAG, "Rejecting connection or notifying that session is closed"
|
Log.d(TAG, "Rejecting connection or notifying that session is closed"
|
||||||
+ ", controllerInfo=" + controllerInfo);
|
+ ", controllerInfo=" + controllerInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user