mukaschultze / nativescript-windowed-modal

Consistent modals for Android and iOS
https://www.npmjs.com/package/nativescript-windowed-modal
Apache License 2.0
47 stars 18 forks source link

Status bar hiding when modal is fullscreen #7

Open RosilBelli opened 5 years ago

RosilBelli commented 5 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

On page loaded event I'm setting the android flag for fullscreen (which hides the status bar) but it has no function when the modal page opens. When I close the modal the status bar stays hidden.

if (application.android) {
   const activity = application.android.foregroundActivity;
   const win = activity.getWindow();
   win.addFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);
}

ModalStack is wrapping the entire modal page content.