Set transport control flags when a session is created
Some apps only set the transport control flags once when their service starts. This was leading to them not getting set when a session is created on their behalf in RCC. This sets the flags when a session is created if needed. bug:16822064 Change-Id: Iea1ebf7747b3059101eb3c36b143b594cc51e114
This commit is contained in:
@@ -389,6 +389,9 @@ import java.lang.IllegalArgumentException;
|
||||
public void registerWithSession(MediaSessionLegacyHelper helper) {
|
||||
helper.addRccListener(mRcMediaIntent, mTransportListener);
|
||||
mSession = helper.getSession(mRcMediaIntent);
|
||||
if (mTransportControlFlags != 0) {
|
||||
setTransportControlFlags(mTransportControlFlags);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user