appcompatdelegate.setDefaultnightmode (appcompatdelegate.mode_night_yes) не работает

IF setdefaultnightmode() IS NOT WORKING 
YOUR ACTIVITY SHOULD extend AppCompatActivity
PizzaSolver