1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Only make http or https URIs trigger the "Show pictures" button

This commit is contained in:
cketti 2015-02-17 23:42:26 +01:00
parent ab8746ffe9
commit d8448c3510

View File

@ -393,7 +393,8 @@ public class Utility {
public static boolean hasExternalImages(final String message) {
Matcher imgMatches = IMG_PATTERN.matcher(message);
while (imgMatches.find()) {
if (!imgMatches.group(1).equals("content")) {
String uriScheme = imgMatches.group(1);
if (uriScheme.equals("http") || uriScheme.equals("https")) {
if (K9.DEBUG) {
Log.d(K9.LOG_TAG, "External images found");
}