Switching from full screen to full screen with Android works great. However, returning from my full-screen activity (full-screen video player), the activity pops up when the status bar goes down. It seems that renewable activity is animated from full screen mode, but the actual activity is not displayed in the status bar, as if it were absent.
I tried messing around with a manifest file defining themes / styles. I tried to do this programmatically in onCreate () before the content presentation was configured, and in other places in the activity lifecycle:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
It seems that there is no way to keep the status bar from animating down and / or from the content view from the first drawing without the status bar, and then adjust it as it is displayed again.
Anyone have any thoughts on this? I am not sure if there is a way to change this and just the behavior of Android.
Thanks in advance.
source
share