Merge "Check mIncludeCode before building appComponentFactory"

This commit is contained in:
TreeHugger Robot
2020-01-15 00:56:49 +00:00
committed by Android (Google) Code Review

View File

@@ -251,7 +251,7 @@ public final class LoadedApk {
}
private AppComponentFactory createAppFactory(ApplicationInfo appInfo, ClassLoader cl) {
if (appInfo.appComponentFactory != null && cl != null) {
if (mIncludeCode && appInfo.appComponentFactory != null && cl != null) {
try {
return (AppComponentFactory)
cl.loadClass(appInfo.appComponentFactory).newInstance();