title: android undo flag FLAG_SHOW_WHEN_LOCKED
body: <p>I added a flag to an activity </p>
  
  <pre><code>getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
  </code></pre>
  
  <p>is there a way to undo this without recreating activity? I need to do this whan a state changes in my application.</p>