I've been experiencing an odd bug where the Activity.Height is reporting full-screen size even when I have a status bar visible. I found a post from 2013, stating that switching between full-screen/not full-screen (which I am doing in a few activities, no title bar in any of the cases) can cause the incorrect Activity.Height to be reported, is this still a known issue?
I'm using B4A 9.8 on a generic tablet running Android 8.1.0 (with a soft-button bar), no attributes in the manifest relating to immersive mode or custom themes or anything like that. I'm manually adding panels to the activity via Activity.AddView(MyPan, 0, 0, Activity.Width, Activity.Height) and then loading anchored layouts into the panels.
What is odd is that I can write a small test app with 3 activates, (not full, with title, not full without title, and full screen no title) which works fine switching between activities. It's only in the full app that I'm getting the problem. My app goes from Main (not-full-no-title) -> Activity 1 (full-no-title) -> Activity 2 (not full-no title) and the last activity still reports the full-screen size without the status bar. Even using in-line Java with getWindowVisibleDisplayFrame method returns a full-screen dimension.
If I add the activity from the test app (Not full, no title) that reports correctly directly to my full app, and then change the chain to go from Main->Activity 1->TestActivity then the test activity will report the incorrect Activity.height.
I'm out of ideas of what to try other than saving the various min/max values along the way and using those in lieu of the actual activity values. Any suggestions would be welcome.
I'm using B4A 9.8 on a generic tablet running Android 8.1.0 (with a soft-button bar), no attributes in the manifest relating to immersive mode or custom themes or anything like that. I'm manually adding panels to the activity via Activity.AddView(MyPan, 0, 0, Activity.Width, Activity.Height) and then loading anchored layouts into the panels.
What is odd is that I can write a small test app with 3 activates, (not full, with title, not full without title, and full screen no title) which works fine switching between activities. It's only in the full app that I'm getting the problem. My app goes from Main (not-full-no-title) -> Activity 1 (full-no-title) -> Activity 2 (not full-no title) and the last activity still reports the full-screen size without the status bar. Even using in-line Java with getWindowVisibleDisplayFrame method returns a full-screen dimension.
If I add the activity from the test app (Not full, no title) that reports correctly directly to my full app, and then change the chain to go from Main->Activity 1->TestActivity then the test activity will report the incorrect Activity.height.
I'm out of ideas of what to try other than saving the various min/max values along the way and using those in lieu of the actual activity values. Any suggestions would be welcome.