Closed rei-m closed 7 years ago
:eyes:
Thanks! π I have a question π
SetUp Locale on attachBaseContext. And Pass that to CalligraphyContextWrapper.
The locale is initialized in BaseActivity on this PR. Is it applied to non-activity class such as Notification?
The locale is initialized in BaseActivity on this PR. Is it applied to non-activity class such as Notification?
No... This Setting is applied only activities. Locale of Notification is SystemLocale. I searched to apply configuration that created by context.createConfigurationContext, and found this solution only.
As @rei-m mentioned, this is only for activities but not non-activity stuff. The main issue here is that createConfigurationContext() just returns context instead of directly updating it. Thus, MainApplication's context only can have the latest locale after app restart.
@rei-m Sorry, I'm not sure this is correct fix or not. Please let me investigate more and wait to merge π
@shiren-wanderer Thanks π I'll try to setup at Application's attachBaseContext.
@konifar OK. I continue to investigation too.
Sorry for too late review π π π In my investigation, latest Android doesn't want to allow changing locale from app π€ So I want to move this locale change option to debug menu. If you agree, I'll create another issue. What do you think?
@konifar Ok!! I agreeπ then please close this PR and create another issue π
Issue
280
Overview (Required)
Links
Screenshot