Merge "Display the correct expected name when loading the wrong adapter."

This commit is contained in:
Romain Guy
2010-09-28 10:35:09 -07:00
committed by Android (Google) Code Review

View File

@@ -545,7 +545,8 @@ public class Adapters {
String name = parser.getName();
if (assertName != null && !assertName.equals(name)) {
throw new IllegalArgumentException("The adapter defined in " +
c.getResources().getResourceEntryName(id) + " must be a <" + name + " />");
c.getResources().getResourceEntryName(id) + " must be a <" +
assertName + " />");
}
if (ADAPTER_CURSOR.equals(name)) {