material-animated-switch
material-animated-switch copied to clipboard
how to run code if already online?
I have an app like uber. Lets assume that the rider has already requested a ride. Once the driver goes online, then the request is seen but if the rider doesn't request a ride until after the driver goes online, the request is not seen. Is there anything else I can do other than if online or if offline? I tried doing switch.isChecked() but nothing changed.