mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
android excplitly retun NULL for mime type
Apparently not used, and cleaner than just always returning text/html
This commit is contained in:
parent
1a40767cd9
commit
af87dd0726
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user