android excplitly retun NULL for mime type

Apparently not used, and cleaner than just always returning text/html
This commit is contained in:
cip 2013-04-06 17:21:37 +02:00
parent 1a40767cd9
commit af87dd0726

View File

@ -38,11 +38,7 @@ import org.json.JSONObject;
public class ZimContentProvider extends ContentProvider {
public static final Uri CONTENT_URI = Uri.parse("content://org.kiwix.zim/");
public static final Uri UI_URI = Uri.parse("content://org.kiwix.ui/");
private static final HashMap<String, String> MIME_TYPES = new HashMap<String, String>();
static {
MIME_TYPES.put(".html", "text/html");
}
private static String zimFileName;
private static JNIKiwix jniKiwix;
@ -137,15 +133,8 @@ public class ZimContentProvider extends ContentProvider {
@Override
public String getType(Uri uri) {
String path = uri.toString();
for (String extension : MIME_TYPES.keySet()) {
if (path.endsWith(extension)) {
return (MIME_TYPES.get(extension));
}
}
return (null);
Log.w("kiwix", "ZimContentProvider.getType() (not implemented) called");
return null;
}
@Override