Skip to content

Commit

Permalink
Fixed unwrapped optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Jul 21, 2018
1 parent ccca09d commit 7798de5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/AppCompatActivity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ open class SwiftSupportAppCompatActivity: AndroidContextWrapper {
result = __return != nil ? Android.Content.Res.Resources(javaObject: __return) : nil
}

return result!
return result
}

public func setContentView(layoutResID: Int) {
Expand Down
4 changes: 2 additions & 2 deletions Sources/View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ open class AndroidView: JavaObject {
return getBackground()
}
set {
setBackground(newValue!)
setBackground(newValue)
}
}

Expand Down Expand Up @@ -2731,7 +2731,7 @@ public extension Android.View.View {
public extension Android.View.View {

@inline(__always)
internal func setBackground(_ background: Android.Graphics.Drawable.Drawable) {
internal func setBackground(_ background: Android.Graphics.Drawable.Drawable?) {

var __locals = [jobject]()

Expand Down

0 comments on commit 7798de5

Please sign in to comment.