File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ package mono ;
2
+
3
+ import android .content .Context ;
4
+ import android .util .Log ;
5
+
6
+ public class MonoPackageManager {
7
+
8
+ private static final String TAG = "MonoPackageManager" ;
9
+ static android .content .Context Context ;
10
+
11
+ public static void LoadApplication (Context context )
12
+ {
13
+ Log .d (TAG , "MonoPackageManager.LoadApplication()" );
14
+ if (context instanceof android .app .Application ) {
15
+ Context = context ;
16
+ }
17
+ }
18
+
19
+ public static void setContext (Context context )
20
+ {
21
+ // Ignore; vestigial
22
+ }
23
+ }
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public boolean onCreate() {
20
20
@ Override
21
21
public void attachInfo (android .content .Context context , android .content .pm .ProviderInfo info ) {
22
22
Log .d (TAG , "NativeAotRuntimeProvider.attachInfo(): calling JavaInteropRuntime.init()…" );
23
+ mono .MonoPackageManager .LoadApplication (context );
23
24
JavaInteropRuntime .init ();
24
25
// NOTE: only required for custom applications
25
26
net .dot .android .ApplicationRegistration .registerApplications ();
You can’t perform that action at this time.
0 commit comments