Reputation: 21657
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.
Upvotes: 0
Views: 644
Reputation: 21657
found it
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
Upvotes: 2