Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
801 stars 101 forks source link

Crash when the selected language is removed from the list of supported languages #193

Closed svillar closed 2 years ago

svillar commented 2 years ago

In the event of removing a language from the list of supported languages (unlikely) Wolvic might crash with IllegalStateException being thrown because the index for the language stored in Settings does no longer exist. This situation normally should only happen while developing and testing code but it's better to be safe. In the event of having this issue we can just reset to the default language.