(String type, String name)
| 1186 | } |
| 1187 | |
| 1188 | static boolean isTnef(String type, String name) { |
| 1189 | // https://en.wikipedia.org/wiki/Transport_Neutral_Encapsulation_Format |
| 1190 | if ("application/ms-tnef".equals(type) || |
| 1191 | "application/vnd.ms-tnef".equals(type)) |
| 1192 | return true; |
| 1193 | |
| 1194 | if ("application/octet-stream".equals(type) && |
| 1195 | "winmail.dat".equalsIgnoreCase(name)) |
| 1196 | return true; |
| 1197 | |
| 1198 | return false; |
| 1199 | } |
| 1200 | |
| 1201 | static void view(Context context, Intent intent) { |
| 1202 | Uri uri = intent.getData(); |
no test coverage detected