AI 146274: am: CL 146273 Fixed "show pictures" button isnot displayed for HTML messages.
Original author: takaoka Merged from: //branches/cupcake/... Automated import of CL 146274
This commit is contained in:
parent
c6039f7d17
commit
1464095f9f
@ -93,8 +93,8 @@ public class MessageView extends Activity
|
||||
};
|
||||
private static final int METHODS_STATUS_COLUMN = 1;
|
||||
|
||||
// regex that matches start of img tag. '.*<(?i)img\s+.*'.
|
||||
private static final Pattern IMG_TAG_START_REGEX = Pattern.compile(".*<(?i)img\\s+.*");
|
||||
// regex that matches start of img tag. '<(?i)img\s+'.
|
||||
private static final Pattern IMG_TAG_START_REGEX = Pattern.compile("<(?i)img\\s+");
|
||||
|
||||
private TextView mSubjectView;
|
||||
private TextView mFromView;
|
||||
@ -963,7 +963,7 @@ public class MessageView extends Activity
|
||||
* that HTML allows.
|
||||
*/
|
||||
// Check if text contains img tag.
|
||||
if (IMG_TAG_START_REGEX.matcher(text).matches()) {
|
||||
if (IMG_TAG_START_REGEX.matcher(text).find()) {
|
||||
mHandler.showShowPictures(true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user