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.
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.
found it
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);