If you accidentally spill water on your mobile device and it goes dead, there are several ways to deal with the problem.
First, here's an article citing the use of a bag of rice
It also cites using a special absorbent packet called Bheestie Revive pack
, which at $18 a whack seems expensive, but can possibly absorb the water from your device.
I wanted to mention my own method, used on non-waterproof but only 'water-resistant' watches.
Every time I get a bottle of vitamin supplements that contains a little pack of gel absorbant, I save it in a zip-lock baggie.
Over time, I end up with quite a few of these.
Interestingly, once they've absorbed their allotment of moisture, they can be revived.
Just put them on a tray in the oven and bake them at a low heat for a few hours.
With this method they can be reused all over again an unlimited number of times.
Last but not least, if you limit yourself to drinking only purified water, pure H2O doesn't conduct electricity, so if you spill some of that on your device there's a chance it won't short it out, unless the water picks up impurities inside the device itself (which admittedly is possible), and you can just let it air out with a fan (not a heater) aimed at it for a few hours or a day or two, or use the above method.