Skip to content

Commit

Permalink
Bugfix: select English language by default (instead of Chinese) durin…
Browse files Browse the repository at this point in the history
…g runtime checks
  • Loading branch information
Mi-Walkie-Talkie-by-Darkhorse committed Feb 25, 2022
1 parent 48f7644 commit b80865d
Showing 1 changed file with 3 additions and 35 deletions.
38 changes: 3 additions & 35 deletions app/smali_classes2/com/ifengyu/intercom/i/c0.smali
Original file line number Diff line number Diff line change
Expand Up @@ -626,36 +626,13 @@
.end method

.method public static a()Z
.locals 2

.line 57
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

move-result-object v0

invoke-virtual {v0}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

move-result-object v0

.line 58
invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

move-result-object v0

const-string v1, "zh"
.locals 1

invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
invoke-static {}, Lcom/ifengyu/intercom/i/c0;->b()Z

move-result v0

if-eqz v0, :cond_0

const/4 v0, 0x1

return v0

:cond_0
const/4 v0, 0x0
xor-int/lit8 v0, v0, 0x1

return v0
.end method
Expand Down Expand Up @@ -1062,15 +1039,6 @@

move-result v0

if-eqz v0, :cond_0

const/4 v0, 0x1

return v0

:cond_0
const/4 v0, 0x0

return v0
.end method

Expand Down

0 comments on commit b80865d

Please sign in to comment.