Skip to content

Commit 5468780

Browse files
Don't cast to AndroidTypeManager
1 parent 798d170 commit 5468780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mono.Android/Android.Runtime/JNIEnvInit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static Type TypeGetType (string typeName) =>
7777
JniType.GetCachedJniType (ref jniType, className);
7878

7979
ReadOnlySpan<char> methods = new ReadOnlySpan<char> ((void*) methods_ptr, methods_len);
80-
((AndroidTypeManager)androidRuntime!.TypeManager).RegisterNativeMembers (jniType, type, methods);
80+
androidRuntime!.TypeManager.RegisterNativeMembers (jniType, type, methods);
8181
}
8282

8383
// NOTE: should have different name than `Initialize` to avoid:

0 commit comments

Comments
 (0)