 <p>The answer is pretty simple, clearing the <code>FLAG_FULLSCREEN</code> flag is all thats necessary:</p> <pre><code>if (isStatusBarVisible) getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); else getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); </code></pre>