Buda Gavril
Buda Gavril

Reputation: 21657

android undo flag FLAG_SHOW_WHEN_LOCKED

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

Answers (1)

Buda Gavril
Buda Gavril

Reputation: 21657

found it

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

Upvotes: 2

Related Questions