This commit is contained in:
Grishka 2024-02-02 15:34:06 +01:00
parent 350a73c3eb
commit e7295aac07
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class ComposeLanguageAlertViewController{
if(previouslySelected!=null){ if(previouslySelected!=null){
if(previouslySelected.index!=-1 && ((previouslySelected.index<specialLocales.size() && Objects.equals(previouslySelected.locale, specialLocales.get(previouslySelected.index).locale)) || if(previouslySelected.index!=-1 && ((previouslySelected.index<specialLocales.size() && Objects.equals(previouslySelected.locale, specialLocales.get(previouslySelected.index).locale)) ||
(previouslySelected.index<specialLocales.size()+allLocales.size() && Objects.equals(previouslySelected.locale, allLocales.get(previouslySelected.index-specialLocales.size()).locale)))){ (previouslySelected.index<specialLocales.size()+allLocales.size() && previouslySelected.index>-1 && Objects.equals(previouslySelected.locale, allLocales.get(previouslySelected.index-specialLocales.size()).locale)))){
selectedIndex=previouslySelected.index; selectedIndex=previouslySelected.index;
selectedLocale=previouslySelected.locale; selectedLocale=previouslySelected.locale;
}else{ }else{