Fix incorrect getType signature/implementation in doc.

The method is missing the Uri parameter and the implementation is
both inefficient and unnecessary. It is documented as fine to
return null in getType.

Change-Id: I78c83918916ca5ef28172e544d9ddc9c3695444d
This commit is contained in:
Jeff Davidson
2015-02-04 11:16:23 -08:00
parent a9943c99dd
commit 10698ac7f3

View File

@@ -85,11 +85,11 @@ public class StubProvider extends ContentProvider {
return true;
}
/*
* Return an empty String for MIME type
* Return no type for MIME type
*/
@Override
public String getType() {
return new String();
public String getType(Uri uri) {
return null;
}
/*
* query() always returns no results