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

Commit

Permalink
修改 发布配置
Browse files Browse the repository at this point in the history
  • Loading branch information
TKaxv-7S committed Jun 21, 2024
1 parent 1a0e3d5 commit 53d52cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew assembleRelease -P version=${{ github.ref }}
run: ./gradlew assembleRelease -P version=${{ github.ref_name }}

- name: Sign Normal APK
id: sign_normal_apk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,13 @@ public void setConfigValue(String value) {

}));
Button btn_checkInterval = findViewById(R.id.btn_checkInterval);
btn_checkInterval.setOnClickListener(v -> StringDialog.showEditDialog(this, ((Button) v).getText(), new IntegerModelField(config.getCheckInterval(), 1, Integer.MAX_VALUE) {
btn_checkInterval.setOnClickListener(v -> StringDialog.showEditDialog(this, ((Button) v).getText(), new IntegerModelField(config.getCheckInterval()) {
@Override
public void setConfigValue(String value) {
super.setConfigValue(value);
config.setCheckInterval(getValue() * 60_000);
Integer newValue = getValue();
newValue = Math.max(1, newValue);
config.setCheckInterval(newValue * 60_000);
}

@Override
Expand Down

0 comments on commit 53d52cb

Please sign in to comment.