Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: parsing exception #82
Browse files Browse the repository at this point in the history
  • Loading branch information
MalitsPlus committed May 9, 2023
1 parent 823ff05 commit 766a9a7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ android {
applicationId "com.github.malitsplus.shizurunotes"
minSdk 26
targetSdk 30
versionCode 100
versionName "1.22.2"
versionCode 101
versionName "1.22.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ protected void childInit() {
@Override
public String localizedDetail(int level, Property property) {
String amount = buildExpression(level, property);
if (Integer.parseInt(amount) < 0) {
amount = String.valueOf((long)Integer.MAX_VALUE - Integer.MIN_VALUE + Integer.parseInt(amount));
}
try {
int intAmount = Integer.parseInt(amount);
if (intAmount < 0) {
amount = String.valueOf((long)Integer.MAX_VALUE - Integer.MIN_VALUE + intAmount);
}
} catch (Exception ignored) { }

return I18N.getString(R.string.Enable_s1_to_resist_all_sorts_of_incapacity_efficacies_up_to_s2_times_in_a_period_of_s3_sec,
targetParameter.buildTargetClause(),
amount,
Expand Down
9 changes: 9 additions & 0 deletions release_log.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
[
{
"versionCode": "101",
"versionName": "1.22.3",
"recommend": "false",
"messageJa": "- 新スキルの追加",
"messageZh": "- 追加新技能",
"infoJa": "",
"infoZh": ""
},
{
"versionCode": "100",
"versionName": "1.22.2",
Expand Down

0 comments on commit 766a9a7

Please sign in to comment.