When I swim in Minecraft the flying button is always active in mcpe
Linked issues
Comments

Thank you for your report!
However, this issue has been closed as a Duplicate of MCPE-32430.
Please add a vote and any new information to the main ticket, which will be updated accordingly.
If you have not, you might like to make use of the search feature before making a new ticket, as it's likely that the issue has been reported already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki
I can comfirm this bug, I have the same problem.
Device: Xpereria X; Android 8.0.0