Skip to content

Commit e0c00e0

Browse files
committed
Update to cast Application to Context
1 parent 3877bbd commit e0c00e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/AndroidAppTests/AndroidAppTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension AndroidContent.Context {
2424
/// The shared `android.content.Context` for the current application
2525
public static func applicationContext() throws -> Context {
2626
// simply cast the Application to a Context
27-
return Context(javaHolder: try Application.currentApplication().javaHolder)
27+
try Application.currentApplication().as(AndroidContent.Context.self)!
2828
}
2929
}
3030

0 commit comments

Comments
 (0)