Permissions conflict with screen overlays
The solution for me is: turn off all Accessibility settings in the Settings of the phone. (now I feel bad for people who need them). 

Also the program Twilight was another reason contributing to the problem.