Files
andors-trail/AndorsTrail
Gonk f4aa70a3e7 Improved localization handling on screen turn (might fix issue #125)
- in some activities the code for setting the locale was missing and therefore a simple turn of the device switched to localized texts even if localized resources were disabled
- for all other activities there was the problem that the locale was set only in onCreate but in some special cases the config is reset but only onResume gets called (e.g. when turning the device, hitting the home button, turning the device back and then switching to AT again). Setting it only in onResume would be too late for the regular cases. The code is almost a noop if there is no change to be done so it seems ok to call it twice.
- created two baseclasses for activities to encapsulate the logic and increase the chance that a new activity will be based on that classes and the code will not be forgotten
- might fix issue #125 "Localized resources showing even when disabled"
- ways of working solutions for setting the locale differ from API level to API level (see https://proandroiddev.com/change-language-programmatically-at-runtime-on-android-5e6bc15c758)
- tested on android Pie and Marshmallow
2019-06-24 23:01:49 +02:00
..
2015-04-13 17:43:30 +02:00
2010-11-04 21:10:57 +00:00
2017-01-04 18:26:18 +02:00
2013-06-26 22:26:57 +02:00
2018-12-07 00:12:37 +01:00