File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
android-pluginmgr/src/main/java/androidx/pluginmgr Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,10 @@ class PluginContextWrapper extends ContextWrapper {
36
36
private static final String tag = "PluginContextWrapper" ;
37
37
private ApplicationInfo applicationInfo ;
38
38
private File fileDir ;
39
+ <
8CFD
span class=pl-k>private Context baseApplication ;
39
40
public PluginContextWrapper (Context base , PlugInfo plugin ) {
40
41
super (base );
42
+ baseApplication = base ;
41
43
this .plugin = plugin ;
42
44
applicationInfo = new ApplicationInfo (super .getApplicationInfo ());
43
45
applicationInfo .sourceDir = plugin .getFilePath ();
@@ -91,7 +93,7 @@ public ApplicationInfo getApplicationInfo() {
91
93
@ Override
92
94
public Context getApplicationContext () {
93
95
Log .d (tag , "getApplicationContext()" );
94
- return this ;
96
+ return plugin . getApplication () ;
95
97
}
96
98
97
99
@ Override
You can’t perform that action at this time.
0 commit comments