0

I added a flag to an activity

getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);

is there a way to undo this without recreating activity? I need to do this whan a state changes in my application.

Buda Gavril
  • 21,409
  • 40
  • 127
  • 196

1 Answers1

2

found it

getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196