[Android] Fixes #2264, handle joystick open/closed state properly