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
This commit is contained in:
Nikita Iashchenko
2021-05-04 14:33:17 +00:00
committed by Automerger Merge Worker

View File

@@ -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);