Skip to content

Commit

Permalink
Fixed AndroidContextWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Jul 21, 2018
1 parent 4db5a54 commit ccca09d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Sources/ContentContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public extension AndroidContext {

// MARK: - JNICache

internal extension AndroidContext {
private extension AndroidContext {

/// JNI Cache
struct JNICache {
Expand Down
11 changes: 4 additions & 7 deletions Sources/ContentContextWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public extension Android.Content {
public typealias ContextWrapper = AndroidContextWrapper
}

open class AndroidContextWrapper: JavaObject {
open class AndroidContextWrapper: AndroidContext {

public convenience init?( casting object: java_swift.JavaObject,
_ file: StaticString = #file,
Expand All @@ -26,11 +26,8 @@ open class AndroidContextWrapper: JavaObject {
self.javaObject = $0
}
}
}

public extension AndroidContextWrapper {

public func registerReceiver(receiver: Android.Content.BroadcastReceiver, filter: Android.Content.IntentFilter) -> Android.Content.Intent {
public override func registerReceiver(receiver: Android.Content.BroadcastReceiver, filter: Android.Content.IntentFilter) -> Android.Content.Intent {

var __locals = [jobject]()

Expand All @@ -53,7 +50,7 @@ public extension AndroidContextWrapper {
return Android.Content.Intent(javaObject: __return)
}

public func unregisterReceiver(receiver: Android.Content.BroadcastReceiver){
public override func unregisterReceiver(receiver: Android.Content.BroadcastReceiver){

var __locals = [jobject]()

Expand Down Expand Up @@ -117,7 +114,7 @@ public extension AndroidContextWrapper {

// MARK: - Constants

internal extension AndroidContextWrapper {
private extension AndroidContextWrapper {

/// JNI Cache
struct JNICache {
Expand Down

0 comments on commit ccca09d

Please sign in to comment.