Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 238748d5 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am 7a800e79: Merge "Avoid leaking AssetFileDescriptor."

* commit '7a800e79':
  Avoid leaking AssetFileDescriptor.
parents 9a60460a 7a800e79
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -95,8 +95,16 @@ final class BinaryDictionaryGetter {
                    + fallbackResId);
            return null;
        }
        try {
            return AssetFileAddress.makeFromFileNameAndOffset(
                    context.getApplicationInfo().sourceDir, afd.getStartOffset(), afd.getLength());
        } finally {
            try {
                afd.close();
            } catch (IOException e) {
                // Ignored
            }
        }
    }

    private static final class DictPackSettings {