A. After setting your gestures, ensure you save the settings if there is an option to do so. If not, try clearing the app's cache and data as a troubleshooting step.
B. Document your gesture settings and reapply them each time you connect your earbuds as a temporary workaround.