email: catch the correct exception while closing the buffers

BinaryTempFileBody#getBody()#getInputStream() returns a
MessagingException not an IOException. This causes
"com.android.emailcommon.mail.MessagingException: Unable to open body"
exception messages and attachment messages not flagged as loaded.

Change-Id: Ia8f25dd0a212ce52e3dd202c523c5db4a009604f
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
This commit is contained in:
Jorge Ruesga 2015-06-09 12:53:07 +02:00 committed by Steve Kondik
parent 0672de3149
commit 377660c356

View File

@ -178,7 +178,7 @@ public class Utilities {
if (is != null) {
is.close();
}
} catch (IOException io) {
} catch (IOException | MessagingException io) {
// Ignore
}
}