mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup android refs
This commit is contained in:
@@ -84,7 +84,7 @@ export class SafeAreaTests extends testModule.UITest<any> {
|
||||
}
|
||||
|
||||
private layout_insets_top_action_bar_hidden_test(layout: view.View) {
|
||||
const keyWindow = Utils.ios.getWindow();
|
||||
const keyWindow = Utils.getWindow<UIWindow>();
|
||||
// const statusBarHeight = round(dipToDp(app.statusBarFrame.size.height));
|
||||
// use window inset instead of status bar frame as that's unreliable on iOS 16+
|
||||
const topInset = Math.round(dipToDp(keyWindow ? keyWindow.safeAreaInsets.top : UIApplication.sharedApplication.keyWindow.safeAreaInsets.top));
|
||||
|
||||
Reference in New Issue
Block a user