Comment utiliser Set Forcedarkallowed (FALSE); dans Android Studio

public class MyApplication extends Application {
    
    public void onCreate() {
        super.onCreate();
        AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
    }
}
Puzzled Plover