Where does this rice myth come from? Is it true?
The premise is that the rice draws out the moisture. It is more complicated than that and would depend on the type of liquid.
The best thing to do is as follows
This gives you your best chance of repairing the device.