Activity
is getting restarted when system font is changed while app is running.
Is there any way I can avoid restarting of my Activity
?
I tested it with basic "Hello World" application.
I am using Android 4.1 as target
PS: I have tried using android:configChanges
but there wasn't any flag related to font change.
U should use android:configChanges="fontScale" . but you would then need to handle that configuration change yourself by overriding onConfigurationChanged() Can refer this
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