From b58a8faa0fc591368c69a9f10fe96c93dbe95770 Mon Sep 17 00:00:00 2001 From: zkx Date: Wed, 3 Jan 2024 23:38:35 +0800 Subject: [PATCH] fix: 2 issues analysed by SonarQube --- src/main/java/net/micode/notes/ui/NotesListActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/micode/notes/ui/NotesListActivity.java b/src/main/java/net/micode/notes/ui/NotesListActivity.java index f9b2164..a98fba0 100644 --- a/src/main/java/net/micode/notes/ui/NotesListActivity.java +++ b/src/main/java/net/micode/notes/ui/NotesListActivity.java @@ -94,7 +94,7 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt private enum ListEditState { NOTE_LIST, SUB_FOLDER, CALL_RECORD_FOLDER, TRASH_FOLDER - }; //NOTE: 三种编辑状态@zhoukexing 2024/1/2 19:31 新增一个 + } //NOTE: 三种编辑状态@zhoukexing 2024/1/2 19:31 新增一个 private ListEditState mState; @@ -376,7 +376,7 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt /** * Minus TitleBar's height */ - if (mState == ListEditState.SUB_FOLDER | + if (mState == ListEditState.SUB_FOLDER || mState == ListEditState.TRASH_FOLDER) { // 回收站的ui显示 @zkx eventY -= mTitleBar.getHeight();