mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-17 21:32:26 -05:00
Revert "Fix for StrictMode error."
This reverts commitbbdec62e37
. 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 commit5678786c97
. 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:
parent
b042776aa4
commit
769ad843dd
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user