1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Revert "Fix for StrictMode error."

This reverts commit bbdec62e37.

Aside from being the incorrect solution for fixing the problem
described in pull request 211, the patch generates 'Dead code'
warnings inside the if(){} statements on lines 46 and 47.

The correct fix for the problem was already implemented in commit
5678786c97.

Although the logcat in the pull request was generated after the fix,
line numbers in the log indicate that it was based on an outdated
version of MimeUtility.java from before the fix.
This commit is contained in:
Joe Steele 2013-06-03 11:59:58 -04:00
parent b042776aa4
commit 769ad843dd

View File

@ -36,15 +36,9 @@ public class BinaryTempFileBody implements Body {
}
public InputStream getInputStream() throws MessagingException {
InputStream is = null;
FileInputStream fis = null;
try {
fis = new FileInputStream(mFile);
is = new BinaryTempFileBodyInputStream(fis);
return is;
return new BinaryTempFileBodyInputStream(new FileInputStream(mFile));
} catch (IOException ioe) {
try { if (fis != null) { fis.close(); } } catch (IOException e) { }
try { if (is != null) { is.close(); } } catch (IOException e) { }
throw new MessagingException("Unable to open body", ioe);
}
}