diff options
author | Jeff Davidson <jpd@google.com> | 2015-02-04 11:16:23 -0800 |
---|---|---|
committer | Jeff Davidson <jpd@google.com> | 2015-04-28 17:23:47 +0000 |
commit | 10698ac7f38303ac8b1fccfc89f8bb8e375f5308 (patch) | |
tree | 85d33d75cd8e7cb6650469e2aa4f41cc97d79457 /docs | |
parent | a9943c99ddb63491ff7624810e6f3eeec9a451c9 (diff) | |
download | frameworks_base-10698ac7f38303ac8b1fccfc89f8bb8e375f5308.zip frameworks_base-10698ac7f38303ac8b1fccfc89f8bb8e375f5308.tar.gz frameworks_base-10698ac7f38303ac8b1fccfc89f8bb8e375f5308.tar.bz2 |
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/training/sync-adapters/creating-stub-provider.jd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/html/training/sync-adapters/creating-stub-provider.jd b/docs/html/training/sync-adapters/creating-stub-provider.jd index b8190d1..e9e18ef 100644 --- a/docs/html/training/sync-adapters/creating-stub-provider.jd +++ b/docs/html/training/sync-adapters/creating-stub-provider.jd @@ -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 |