Merge "Fix ClassLoader issue of WindowContext" into sc-v2-dev am: a9efae988e am: 778e0bc013

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16102159

Change-Id: I0cbdc3be27f6fbb1df912eaf238f898b63586cc3
This commit is contained in:
Charles Chen
2021-10-28 10:00:03 +00:00
committed by Automerger Merge Worker

View File

@@ -2763,7 +2763,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();