Update V6: Fixed for Android 10!
This flow switches your network to 2G or GSM network when you're connected to a WiFi hotspot in order to save battery and disables data connection. 2G network saves more battery than 3G or 4G.
If WiFi is not connected, it will reset your network to system default, which ideally is 2G/3G/4G (Auto)
[Please share your experience if you're using this module]
[Update V5: The flow will no longer wait for the WiFi state to change when triggered for the very first time. Also, improved flow logic.]
[Update V4: Checks cellular call state before changing the network mode]
Rate and review within the app in the Community section.