summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Iashchenko <nikitai@google.com>2021-05-04 14:33:17 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-04 14:33:17 +0000
commit40f1d1a2c56eb1fed77140572d4f359218e6a4b5 (patch)
tree3c811d5ac20527deeab24e018a25361f6e61c859
parente9e836dffb82c2cb83ca20b905ac0d15380da4d0 (diff)
parent4052d42e8cbda80bb10e06597485623bea83db96 (diff)
Merge "Rename MimeMap.Builder setter methods to match guidelines" am: 9ef9fab0a1 am: 2368ec9e27 am: 4052d42e8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690841 Change-Id: Ibde2ce8cc39a2b3f564a2c11a85e18a24cce0595
-rw-r--r--mime/java/android/content/type/DefaultMimeMapFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/mime/java/android/content/type/DefaultMimeMapFactory.java b/mime/java/android/content/type/DefaultMimeMapFactory.java
index 11d20d4d6c80..bcd0eb0a9e39 100644
--- a/mime/java/android/content/type/DefaultMimeMapFactory.java
+++ b/mime/java/android/content/type/DefaultMimeMapFactory.java
@@ -96,7 +96,7 @@ public class DefaultMimeMapFactory {
specs.add(spec);
startIdx = endIdx + 1; // skip over the space
} while (startIdx < line.length());
- builder.put(specs.get(0), specs.subList(1, specs.size()));
+ builder.addMimeMapping(specs.get(0), specs.subList(1, specs.size()));
}
} catch (IOException | RuntimeException e) {
throw new RuntimeException("Failed to parse " + resourceName, e);