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:
RoboErik
2014-08-20 18:19:30 -07:00
parent d2b8c947dd
commit 93b4662531

View File

@@ -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);
}
}
/**