When I change the system font on an android device, my app is getting restarted (not just current activity). I am sure of this as the pid itself is different.
Is there any way to prevent application restart?
This question is related to: Handle runtime activity configuration when font change
As described there, there is no configChanges attribute which can be used to handle system font change (fontScale works only for font size change).
You should add the below line in your manifest. But you have to handle the configuration change by yourself.android:configChanges="fontScale"
Handling Runtime Changes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With