File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 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() {
2020 @ Override
2121 public void attachInfo (android .content .Context context , android .content .pm .ProviderInfo info ) {
2222 Log .d (TAG , "NativeAotRuntimeProvider.attachInfo(): calling JavaInteropRuntime.init()…" );
23+ mono .MonoPackageManager .LoadApplication (context );
2324 JavaInteropRuntime .init ();
2425 // NOTE: only required for custom applications
2526 net .dot .android .ApplicationRegistration .registerApplications ();
You can’t perform that action at this time.
0 commit comments