MCPcopy Create free account
hub / github.com/M66B/FairEmail / fixMimeType

Method fixMimeType

app/src/main/java/eu/faircode/email/UriType.java:64–70  ·  view source on GitHub ↗
(Context context)

Source from the content-addressed store, hash-verified

62 }
63
64 private void fixMimeType(Context context) {
65 if (context != null &&
66 (type == null || type.equals("*/*") || type.endsWith("/*") || type.startsWith("message/"))) {
67 Helper.UriInfo info = Helper.getInfo(this, context);
68 this.type = EntityAttachment.getMimeType(type, info.name);
69 }
70 }
71
72 public Uri getUri() {
73 return this.uri;

Callers 1

UriTypeMethod · 0.95

Calls 3

getInfoMethod · 0.95
getMimeTypeMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected