mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-10 21:10:15 +00:00
6c638f91f4
- both MainMenuActivity and RetroActivity are single instances now - AKEYCODE_BACK gets eaten and onBackPressed in Java is triggered - onBackPressed right now calls an instance of MainMenuActivity (reuses the existing activity on the stack) - User can switch back and forth between RetroActivity and MainMenuActivity with AKEYCODE_BACK / Back button - When a subsequent intent is launched after RetroActivity has already been started up once, the pending intent gets passed to the existing RetroActivity throug onNewIntent - in C land it will look every frame if an intent is pending - if it is, it will look up certain variables through JNI to launch a new game - or whatever it is that the intent wants to do - With this we can now switch seamlessly between Android UI and RetroArch itself.