Skip to content

Commit

Permalink
fix wrong lang
Browse files Browse the repository at this point in the history
  • Loading branch information
Tungstend committed Mar 5, 2024
1 parent 430d34e commit 2d38590
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FCL/src/main/java/com/tungsten/fcl/ui/main/Announcement.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public String getDisplayTitle(Context context) {
throw new IllegalStateException("No title list!");
}
for (Content c : title) {
if (c.getLang().contains(LocaleUtils.getLocale(LocaleUtils.getLanguage(context)).toString())) {
if (LocaleUtils.getLocale(LocaleUtils.getLanguage(context)).toString().contains(c.getLang())) {
return c.getText();
}
}
Expand All @@ -91,7 +91,7 @@ public String getDisplayContent(Context context) {
throw new IllegalStateException("No content list!");
}
for (Content c : content) {
if (c.getLang().contains(LocaleUtils.getLocale(LocaleUtils.getLanguage(context)).toString())) {
if (LocaleUtils.getLocale(LocaleUtils.getLanguage(context)).toString().contains(c.getLang())) {
return c.getText();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public String getDisplayDescription(Context context) {
throw new IllegalStateException("No update description list!");
}
for (Description d : description) {
if (d.getLang().contains(LocaleUtils.getLocale(LocaleUtils.getLanguage(context)).toString())) {
if (LocaleUtils.getLocale(LocaleUtils.getLanguage(context)).toString().contains(d.getLang())) {
return d.getText();
}
}
Expand Down

0 comments on commit 2d38590

Please sign in to comment.