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:
parent
ab8746ffe9
commit
d8448c3510
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user