Merge "Send library context to ApiFactory"

This commit is contained in:
TreeHugger Robot
2018-01-17 09:08:30 +00:00
committed by Android (Google) Code Review

View File

@@ -49,8 +49,8 @@ public final class ApiLoader {
Context.CONTEXT_INCLUDE_CODE | Context.CONTEXT_IGNORE_SECURITY);
sMediaLibrary = libContext.getClassLoader()
.loadClass(UPDATE_CLASS)
.getMethod(UPDATE_METHOD, Context.class)
.invoke(null, appContext);
.getMethod(UPDATE_METHOD, Context.class, Context.class)
.invoke(null, appContext, libContext);
return sMediaLibrary;
}
}