Fix application switching on Android