Skip to content

Android: Fix all the crap required since Android 15 (Edge-To-Edge, Back callbacks). - #3408

Merged
Ghabry merged 5 commits into
EasyRPG:masterfrom
Ghabry:android
May 21, 2025
Merged

Android: Fix all the crap required since Android 15 (Edge-To-Edge, Back callbacks).#3408
Ghabry merged 5 commits into
EasyRPG:masterfrom
Ghabry:android

Conversation

@Ghabry

@Ghabry Ghabry commented Apr 29, 2025

Copy link
Copy Markdown
Member

All this huge pile of disgusting code just to get rid of bad defaults enforced by Google we don't even use. Please don't ask about too many details... It uuuuh works.

(Fun fact: They delayed the opt-out to Android 16 because even Google itself hasn't added it to all their apps yet m( )

For testing you need a Android 15+ device. On olders you can only test if it still works, but all the edge-to-edge stuff etc. is just disabled.


Oh and I also added a Dark Mode :). At least something that is useful.

grafik

Ghabry added 4 commits April 29, 2025 16:48
To achieve this a custom ScrollView was added which configures the insets and draws the systembar color.

The code was based on the AndroidX DrawerLayout but using this directly was risky as it has too many features we don't use.

Fix EasyRPG#3373
…also works for older ones)

Otherwise the app is terminated instead of opening our Drawer.

onBackPressed is depreacted.
Instead a callback must be added to getOnBackPressedDispatcher (what an improvement, incredible!)
Otherwise the default buttons are partially rendered out of bounds...

Was figured out via trial and error. Works on my device...
@Ghabry Ghabry added Android UX For issues affecting the user experience, such annoyances, counter-intuitive or ugly design labels Apr 29, 2025
@Ghabry Ghabry added this to the 0.8.2 milestone Apr 29, 2025

@carstene1ns carstene1ns left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Android 9, seems to work.

@Ghabry
Ghabry merged commit 5857254 into EasyRPG:master May 21, 2025
sevenc-nanashi pushed a commit to sevenc-nanashi/easyrpg-player that referenced this pull request May 31, 2026
Android: Fix all the crap required since Android 15 (Edge-To-Edge, Back callbacks).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android Building UX For issues affecting the user experience, such annoyances, counter-intuitive or ugly design

Development

Successfully merging this pull request may close these issues.

2 participants