Merge "LayoutLib: Log error when style can't be found." into honeycomb

This commit is contained in:
Xavier Ducrohet
2011-01-11 17:24:06 -08:00
committed by Android (Google) Code Review

View File

@@ -382,8 +382,9 @@ public final class BridgeContext extends Activity {
defStyleValues = (StyleResourceValue)item;
}
} else {
// TODO: log the error properly
System.out.println("Failed to find defStyle: " + defStyleName);
Bridge.getLog().error(null,
String.format(
"Failed to find style '%s' in current theme", defStyleName));
}
}
}