jonjomckay / fritter

A privacy-friendly Twitter frontend for mobile devices
https://fritter.cc
MIT License
1.38k stars 80 forks source link

fix the exception of drawable/ic_notification that causes a crash at startup of the release version #694

Closed j-fbriere closed 1 year ago

j-fbriere commented 1 year ago

This is to fix the bugs #691, #594 and #575.

When launching the app of the latest released beta version (beta8), the app crashes immediately.

Looking at the logcat output, the relevant part is:

05-01 15:42:49.850  4069  4069 E Icon    : Unable to load resource 0x7f040000 from pkg=com.jonjomckay.fritter
05-01 15:42:49.850  4069  4069 E Icon    : android.content.res.Resources$NotFoundException: Drawable com.jonjomckay.fritter:drawable/ic_notification with resource ID #0x7f040000
...

The ic_notification resource is not found on the release version.

The added keep.xml file helps fix the problem.

Reference: Android Shrink Resources, Resource Not Found.

jonjomckay commented 1 year ago

Thank you!