by Benoît Vidotto
No more annoying group chat !
With selected apps, this flow will activate the "Do not disturb" mode when they are in foreground.
These apps are registered in a file.
Menus are at disposable to manage them.
Once the flow is launched, you need to restart it to manage the selected applications.
You can change the "Do not disturb" mode settings in the blocks n°3, 21 and 24.
Default is Calls only, with disturbance blocking (Android 7+).
May not work when an app appears on top of the other. If anyone has a workaround, that'd be nice to let me know.
In games, the problem probably comes from the Google play services. You need to add com.google.android.gms to your apps.
Changelog: when the device is locked, the game mode is deactivated.