title: Immersive mode instructions reappear every time the device enters this mode
body: <p>My app uses the new "immersive mode" by calling (in <code>onCreate</code>):</p>
  
  <p><code>getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);</code></p>
  
  <p>This works great, but the "how-to" popup ("Swipe down from the top to exit full screen") appears every time the Activity is launched (if the phone is being locked while the activity was showing), even though the user has acknowledged the popup. As far as I understand, the popup is automatically generated by the system, so there's nothing I can do to change this situation, correct?</p>
  
  <p>This issue is reproducible as follows:</p>
  
  <ol>
  <li>Launch immersive Activity [no popup appears, only on the very first launch (correctly)]</li>
  <li>Press the power button to switch off screen while the activity is showing</li>
  <li>Press power button again to switch on screen</li>
  <li>Close Activity by calling finish() e.g. from a button or menu option </li>
  <li>Launch Activity again - popup reappears</li>
  </ol>
  
  <p>The popup does NOT reappear if the activity is launched, closed, and relaunched without hitting the power-button in between. Also, it ONLY reappears if the activity was topmost while the power button was pressed.</p>
  
  <p><em>Correction:</em> The Activity needs to be closed by calling "finish()" (e.g. from a button or a menu option). It works correctly if the Activity is closed by the back-key.</p>
  
  <p>I've uploaded a sample app here: <a href="https://github.com/niko001/com.greatbytes.immersivebug/tree/master/Test5" rel="noreferrer">https://github.com/niko001/com.greatbytes.immersivebug/tree/master/Test5</a></p>
  
  <p><strong>EDIT</strong>: There's now an <a href="http://www.xda-developers.com/android/stop-immersive-mode-from-panicking-with-xposed/" rel="noreferrer">Xposed module</a> to disable the "panic mode", so I guess I'm not alone in seeing this is an annoyance ;)</p>