Just got a mate 20 X. Worst case scenario is to unlock the bootloader and install something like LineageOs with gapps and problem solved.
Use a floating vest so you can get confident swimming around. If the water is still you should also learn to float on your back, it can be very usefull. With a good snorkeling kit I can swim forever in the sea.