Loading plugins/openpgp-api-lib/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java +12 −20 Original line number Diff line number Diff line Loading @@ -450,13 +450,7 @@ public class OpenPgpApi { new OpenPgpError(OpenPgpError.CLIENT_SIDE_ERROR, e.getMessage())); return new OpenPgpDataResult<>(result, null); } finally { if (output != null) { try { output.close(); } catch (IOException e) { Log.e(OpenPgpApi.TAG, "IOException when closing ParcelFileDescriptor!", e); } } closeLoudly(output); } } Loading Loading @@ -493,13 +487,7 @@ public class OpenPgpApi { new OpenPgpError(OpenPgpError.CLIENT_SIDE_ERROR, e.getMessage())); return result; } finally { if (output != null) { try { output.close(); } catch (IOException e) { Log.e(OpenPgpApi.TAG, "IOException when closing ParcelFileDescriptor!", e); } } closeLoudly(output); } } Loading Loading @@ -614,6 +602,11 @@ public class OpenPgpApi { return result; } finally { // close() is required to halt the TransferThread closeLoudly(input); } } private static void closeLoudly(ParcelFileDescriptor input) { if (input != null) { try { input.close(); Loading @@ -622,7 +615,6 @@ public class OpenPgpApi { } } } } public interface PermissionPingCallback { void onPgpPermissionCheckResult(Intent result); Loading Loading
plugins/openpgp-api-lib/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpApi.java +12 −20 Original line number Diff line number Diff line Loading @@ -450,13 +450,7 @@ public class OpenPgpApi { new OpenPgpError(OpenPgpError.CLIENT_SIDE_ERROR, e.getMessage())); return new OpenPgpDataResult<>(result, null); } finally { if (output != null) { try { output.close(); } catch (IOException e) { Log.e(OpenPgpApi.TAG, "IOException when closing ParcelFileDescriptor!", e); } } closeLoudly(output); } } Loading Loading @@ -493,13 +487,7 @@ public class OpenPgpApi { new OpenPgpError(OpenPgpError.CLIENT_SIDE_ERROR, e.getMessage())); return result; } finally { if (output != null) { try { output.close(); } catch (IOException e) { Log.e(OpenPgpApi.TAG, "IOException when closing ParcelFileDescriptor!", e); } } closeLoudly(output); } } Loading Loading @@ -614,6 +602,11 @@ public class OpenPgpApi { return result; } finally { // close() is required to halt the TransferThread closeLoudly(input); } } private static void closeLoudly(ParcelFileDescriptor input) { if (input != null) { try { input.close(); Loading @@ -622,7 +615,6 @@ public class OpenPgpApi { } } } } public interface PermissionPingCallback { void onPgpPermissionCheckResult(Intent result); Loading