mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Correctly close the gzip stream
I had gotten the chain call in reverse. Bug: 6177523 Change-Id: Ic5b76425de2d5d05d5132f8d2c7ade0d79c14ccc
This commit is contained in:
parent
1fe943aabd
commit
bc89f5d3a5
@ -196,8 +196,8 @@ public class BinaryDictionaryFileDumper {
|
|||||||
} finally {
|
} finally {
|
||||||
// Ignore exceptions while closing files.
|
// Ignore exceptions while closing files.
|
||||||
try {
|
try {
|
||||||
// afd.close() will close inputStream, we should not call inputStream.close().
|
// inputStream.close() will close afd, we should not call afd.close().
|
||||||
if (null != afd) afd.close();
|
if (null != inputStream) inputStream.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e(TAG, "Exception while closing a cross-process file descriptor : " + e);
|
Log.e(TAG, "Exception while closing a cross-process file descriptor : " + e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user