InflationX / Calligraphy

Custom fonts in Android the easy way...
Apache License 2.0
1.09k stars 83 forks source link

ViewPumpContextWrapper is final #55

Closed battbot-snappy closed 3 years ago

battbot-snappy commented 3 years ago

I moved from v2 to v3 today and found that the new context wrapper is a final class. I was extending the old context wrapper to allow for locale changing in my app but now i cannot fulfill my need to allow for custom fonts + locale changes together. Is there any particular reason ViewPumpContextWrapper has to be final?

chrisjenx commented 3 years ago

Create a Locale Interceptor, Calligraphy uses an interceptor to do the font manipulation, just do the same for Locale