*
* @see Bridge#createSession(SessionParams)
*/
public RenderSession createSession(SessionParams params) {
if (mBridge != null) {
RenderSession session = mBridge.createSession(params);
if (params.getExtendedViewInfoMode() &&
mBridge.getCapabilities().contains(Capability.EXTENDED_VIEWINFO) == false) {
// Extended view info was requested but the layoutlib does not support it.
// Add it manually.
List<ViewInfo> infoList = session.getRootViews();
if (infoList != null) {
for (ViewInfo info : infoList) {
addExtendedViewInfo(info);
}
}