Skip to content

Commit 7798de5

Browse files
committed
Fixed unwrapped optionals
1 parent ccca09d commit 7798de5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/AppCompatActivity.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ open class SwiftSupportAppCompatActivity: AndroidContextWrapper {
274274
result = __return != nil ? Android.Content.Res.Resources(javaObject: __return) : nil
275275
}
276276

277-
return result!
277+
return result
278278
}
279279

280280
public func setContentView(layoutResID: Int) {

Sources/View.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ open class AndroidView: JavaObject {
7474
return getBackground()
7575
}
7676
set {
77-
setBackground(newValue!)
77+
setBackground(newValue)
7878
}
7979
}
8080

@@ -2731,7 +2731,7 @@ public extension Android.View.View {
27312731
public extension Android.View.View {
27322732

27332733
@inline(__always)
2734-
internal func setBackground(_ background: Android.Graphics.Drawable.Drawable) {
2734+
internal func setBackground(_ background: Android.Graphics.Drawable.Drawable?) {
27352735

27362736
var __locals = [jobject]()
27372737

0 commit comments

Comments
 (0)