Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10698ac7 authored by Jeff Davidson's avatar Jeff Davidson
Browse files

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
parent a9943c99
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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