Skip to content

Commit 49bc2dc

Browse files
committed
Fixed ContextCompat
1 parent c720272 commit 49bc2dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/ContextCompat.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ open class AndroidContextCompat: JavaObject {
3030

3131
public extension AndroidContextCompat {
3232

33-
public static func getColor(context: AndroidContext, colorRes: Int) -> Int {
33+
public static func getColor(context: AndroidContext, colorRes: Int) -> Int64 {
3434

3535
var __locals = [jobject]()
3636

@@ -46,7 +46,7 @@ public extension AndroidContextCompat {
4646
methodCache: &JNICache.MethodID.getColor,
4747
args: &__args,
4848
locals: &__locals )
49-
return Int(__return)
49+
return Int64(__return)
5050
}
5151

5252
public static func getDrawable(context: AndroidContext, drawableRes: Int) -> AndroidGraphicsDrawableDrawable? {
@@ -75,7 +75,7 @@ internal extension AndroidContextCompat {
7575
/// JNI Cache
7676
struct JNICache {
7777

78-
static let classSignature = SupportV4.View.className(["ContextCompat"])
78+
static let classSignature = SupportV4.Content.className(["ContextCompat"])
7979

8080
/// JNI Java class name
8181
static let className = classSignature.rawValue

0 commit comments

Comments
 (0)