I have an issue with the following code:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
On my emulator this seems to work fine. The status bar disappears and the empty space is filled with the content view. However on my Nexus One this sometimes works and sometimes the empty space remains empty/black.
Any idea why this happens?
I tried to counteract this, but my naive approach wasn't fruitful:
handler.postDelayed(new Runnable() {
@Override
public void run() {
v.getRootView().invalidate();
v.getRootView().requestLayout();
v.getRootView().forceLayout();
}
}, 800);
}
I tried those things from above separately, synchronously and delayed (to wait for the hide animation to end first).