Reputation: 4446
I'm working on an application that can change the device font size. When I change the font size from my application, the change applies to the whole device and other applications but not itself. I haven't set font sizes in dp. What causes this problem?
Upvotes: 1
Views: 302
Reputation: 4446
Finally, I found the problem. I had used
implementation 'androidx.appcompat:appcompat:1.1.0'
changed its version to 1.0.2 and it solved. I reported this issue to google: https://issuetracker.google.com/issues/144151376
Upvotes: 1
Reputation: 4442
Check your activity tag inside AndroidManifest.xml
if if has something similar to android:configChanges="fontScale"
remove it.
<activity android:name=".MainActivity" android:configChanges="fontScale">
Upvotes: 0