Skip to content

Commit 1866a0a

Browse files
committed
Fixed iOS build regression
1 parent 2bc1b2e commit 1866a0a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Ports/iOSPort/nativeSources/IOSNative.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -8286,7 +8286,7 @@ JAVA_BOOLEAN com_codename1_impl_ios_IOSNative_nativeIsAlphaMaskSupportedGlobal__
82868286
JAVA_INT com_codename1_impl_ios_IOSNative_getDisplaySafeInsetLeft___R_int(CN1_THREAD_STATE_MULTI_ARG JAVA_OBJECT instanceObject) {
82878287
if (@available(iOS 11.0, *)) {
82888288
UIWindow *window = UIApplication.sharedApplication.keyWindow;
8289-
if(window != nil && window.safeAreaInsets != nil) {
8289+
if(window != nil) {
82908290
return (JAVA_INT)(window.safeAreaInsets.left * scaleValue);
82918291
}
82928292
}
@@ -8296,7 +8296,7 @@ JAVA_INT com_codename1_impl_ios_IOSNative_getDisplaySafeInsetLeft___R_int(CN1_TH
82968296
JAVA_INT com_codename1_impl_ios_IOSNative_getDisplaySafeInsetTop___R_int(CN1_THREAD_STATE_MULTI_ARG JAVA_OBJECT instanceObject) {
82978297
if (@available(iOS 11.0, *)) {
82988298
UIWindow *window = UIApplication.sharedApplication.keyWindow;
8299-
if(window != nil && window.safeAreaInsets != nil) {
8299+
if(window != nil) {
83008300
return (JAVA_INT)(window.safeAreaInsets.top * scaleValue);
83018301
}
83028302
}
@@ -8306,7 +8306,7 @@ JAVA_INT com_codename1_impl_ios_IOSNative_getDisplaySafeInsetTop___R_int(CN1_THR
83068306
JAVA_INT com_codename1_impl_ios_IOSNative_getDisplaySafeInsetRight___R_int(CN1_THREAD_STATE_MULTI_ARG JAVA_OBJECT instanceObject) {
83078307
if (@available(iOS 11.0, *)) {
83088308
UIWindow *window = UIApplication.sharedApplication.keyWindow;
8309-
if(window != nil && window.safeAreaInsets != nil) {
8309+
if(window != nil) {
83108310
return (JAVA_INT)(window.safeAreaInsets.right * scaleValue);
83118311
}
83128312
}
@@ -8316,7 +8316,7 @@ JAVA_INT com_codename1_impl_ios_IOSNative_getDisplaySafeInsetRight___R_int(CN1_T
83168316
JAVA_INT com_codename1_impl_ios_IOSNative_getDisplaySafeInsetBottom___R_int(CN1_THREAD_STATE_MULTI_ARG JAVA_OBJECT instanceObject) {
83178317
if (@available(iOS 11.0, *)) {
83188318
UIWindow *window = UIApplication.sharedApplication.keyWindow;
8319-
if(window != nil && window.safeAreaInsets != nil) {
8319+
if(window != nil) {
83208320
return (JAVA_INT)(window.safeAreaInsets.bottom * scaleValue);
83218321
}
83228322
}

0 commit comments

Comments
 (0)