Which phone does the gesture control function operate on when the Neckband Pro is connected to two phones?

The button operation controls the device from which the current earphones are outputting sound. If the earphones are not playing sound, it controls the last connected device or the last device that produced sound through the earphones (call, music, alert tones, etc.).