if (layoutType != null) { if (!layoutType.equals(castType) && !context.getSdkInfo().isSubViewOf(castType, layoutType)) { compatible = false; for (String type : layoutTypes) { if (type.equals(castType) || context.getSdkInfo().isSubViewOf(castType, type)) { compatible = true; break;
if (layoutType != null) { if (!layoutType.equals(castType) && !context.getSdkInfo().isSubViewOf(castType, layoutType)) { compatible = false; for (String type : layoutTypes) { if (type.equals(castType) || context.getSdkInfo().isSubViewOf(castType, type)) { compatible = true; break;