New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-25756] Android: Restart application upon locale change #9937
Conversation
b72f52e
to
3728594
Compare
Yeah I agree that event makes sense! How would a user handle the restart of the app though? Or is opening/closing windows enough? |
On iOS, we could listen to the |
3728594
to
91f1cfb
Compare
Generated by 🚫 dangerJS |
Is this a public method? |
@hansemannn nope, it's intended for LiveView |
What do you think about the following btw? Ti.Locale.addEventListener('change', function (e) {
// locale has changed
}); |
I like @hansemannn idea of a And should we use this event to override the auto-restart behavior like how we did it with the "androidback" button event? Personally, I wouldn't want the app to restart since you'll lose content and your current position within the app. Most apps, especially Windows desktop apps, will only handle the locale change the next time the app is re-launch by the end-user. |
I feel like you should be able to override it, so makes sense! As long as you can listen for it and still let it reboot :) I like the event too! |
2a0c742
to
849288d
Compare
@hansemannn Updated PR; ready for iOS parity |
6aecb29
to
ec4a874
Compare
FR Passed.
Studio Ver: 5.1.1.201809051655 |
@garymathews , Can you please resolve the conflicts. |
TEST CASE
JIRA Ticket