Merge "Fix ClassLoader issue of WindowContext" into sc-v2-dev

This commit is contained in:
Charles Chen
2021-10-28 09:24:08 +00:00
committed by Android (Google) Code Review

View File

@@ -2743,7 +2743,7 @@ class ContextImpl extends Context {
*/
private static Resources createWindowContextResources(@NonNull ContextImpl windowContextBase) {
final LoadedApk packageInfo = windowContextBase.mPackageInfo;
final ClassLoader classLoader = windowContextBase.mClassLoader;
final ClassLoader classLoader = windowContextBase.getClassLoader();
final IBinder token = windowContextBase.getWindowContextToken();
final String resDir = packageInfo.getResDir();