Skip to content

Commit

Permalink
Fix a bug while deleting notes from CardView;Update create_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0Kirby committed Nov 17, 2020
1 parent c2fd683 commit fbf1272
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Assemble release with Gradle
run: chmod +x gradlew &&./gradlew assembleRelease
- name: Find filename and set env
run: echo ::set-env name=FILENAME::`basename app/build/outputs/apk/release/*.apk`
run: echo "FILENAME=`basename app/build/outputs/apk/release/*.apk`" >> $GITHUB_ENV
- name: Sign APK
run: jarsigner -verbose -keystore jtykey.jks -storepass ${{ secrets.STORE_PASS }} app/build/outputs/apk/release/${{ env.FILENAME }} zerokirby
- name: Create Release
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
minSdkVersion 21
targetSdkVersion 30
versionCode Integer.valueOf(getDate())
versionName "2.14.4"
versionName "2.14.5"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/cn/zerokirby/note/noteutil/NoteAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ public void onClick(DialogInterface dialogInterface, int i) {//点击确定则
NoteDataHelper noteDataHelper = new NoteDataHelper();
noteDataHelper.deleteNote(id);
noteDataHelper.close();

mainActivity.modifySync();
mainActivity.deleteNoteById(id);
}
});
builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {//什么也不做
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ public void onClick(DialogInterface dialogInterface, int i) {//点击确定则
NoteDataHelper noteDataHelper = new NoteDataHelper();
noteDataHelper.deleteNote(id);
noteDataHelper.close();

mainActivity.modifySync();
mainActivity.deleteNoteById(id);
}
});
builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {//什么也不做
Expand Down

0 comments on commit fbf1272

Please sign in to comment.