summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/documentsui/archives/ArchivesProvider.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/documentsui/archives/ArchivesProvider.java b/src/com/android/documentsui/archives/ArchivesProvider.java
index 1db03b25c..508a1aa7d 100644
--- a/src/com/android/documentsui/archives/ArchivesProvider.java
+++ b/src/com/android/documentsui/archives/ArchivesProvider.java
@@ -152,8 +152,8 @@ public class ArchivesProvider extends DocumentsProvider {
public @Nullable Bundle getDocumentMetadata(String documentId)
throws FileNotFoundException {
- Archive archive = getLoaderOrThrow(documentId).get();
- String mimeType = archive.getDocumentType(documentId);
+ final Archive archive = getLoaderOrThrow(documentId).get();
+ final String mimeType = archive.getDocumentType(documentId);
if (!MetadataReader.isSupportedMimeType(mimeType)) {
return null;
@@ -163,11 +163,11 @@ public class ArchivesProvider extends DocumentsProvider {
try {
stream = new ParcelFileDescriptor.AutoCloseInputStream(
openDocument(documentId, "r", null));
- Bundle metadata = new Bundle();
+ final Bundle metadata = new Bundle();
MetadataReader.getMetadata(metadata, stream, mimeType, null);
return metadata;
} catch (IOException e) {
- Log.e(TAG, "An error occurred retrieving the metadata", e);
+ Log.e(TAG, "An error occurred retrieving the metadata.", e);
return null;
} finally {
IoUtils.closeQuietly(stream);