mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 12:12:06 +01:00
Fix AbstractError.getDescriptiveText()
This commit is contained in:
parent
4fb1449077
commit
8a8c01a4e5
1 changed files with 4 additions and 1 deletions
|
@ -66,9 +66,12 @@ public class AbstractError {
|
||||||
public String getDescriptiveText() {
|
public String getDescriptiveText() {
|
||||||
String defaultLocale = Locale.getDefault().getLanguage();
|
String defaultLocale = Locale.getDefault().getLanguage();
|
||||||
String descriptiveText = getDescriptiveText(defaultLocale);
|
String descriptiveText = getDescriptiveText(defaultLocale);
|
||||||
|
if (descriptiveText == null) {
|
||||||
|
descriptiveText = getDescriptiveText("en");
|
||||||
if(descriptiveText == null) {
|
if(descriptiveText == null) {
|
||||||
descriptiveText = getDescriptiveText("");
|
descriptiveText = getDescriptiveText("");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return descriptiveText;
|
return descriptiveText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue