Loading packages/DocumentsUI/src/com/android/documentsui/CopyService.java +5 −7 Original line number Original line Diff line number Diff line Loading @@ -466,14 +466,12 @@ public class CopyService extends IntentService { srcFile.checkError(); srcFile.checkError(); } catch (IOException e) { } catch (IOException e) { copyError = e; copyError = e; } finally { if (copyError != null) { try { try { dstFile.closeWithError(copyError.getMessage()); dstFile.closeWithError(copyError.getMessage()); } catch (IOException e) { } catch (IOException closeError) { Log.e(TAG, "Error closing destination", e); Log.e(TAG, "Error closing destination", closeError); } } } } finally { // This also ensures the file descriptors are closed. // This also ensures the file descriptors are closed. IoUtils.closeQuietly(src); IoUtils.closeQuietly(src); IoUtils.closeQuietly(dst); IoUtils.closeQuietly(dst); Loading Loading
packages/DocumentsUI/src/com/android/documentsui/CopyService.java +5 −7 Original line number Original line Diff line number Diff line Loading @@ -466,14 +466,12 @@ public class CopyService extends IntentService { srcFile.checkError(); srcFile.checkError(); } catch (IOException e) { } catch (IOException e) { copyError = e; copyError = e; } finally { if (copyError != null) { try { try { dstFile.closeWithError(copyError.getMessage()); dstFile.closeWithError(copyError.getMessage()); } catch (IOException e) { } catch (IOException closeError) { Log.e(TAG, "Error closing destination", e); Log.e(TAG, "Error closing destination", closeError); } } } } finally { // This also ensures the file descriptors are closed. // This also ensures the file descriptors are closed. IoUtils.closeQuietly(src); IoUtils.closeQuietly(src); IoUtils.closeQuietly(dst); IoUtils.closeQuietly(dst); Loading