From 4ba1cf010811400c5ea97dc1423bb724057d5ce2 Mon Sep 17 00:00:00 2001 From: qiaozhongliang Date: Wed, 8 Feb 2012 10:17:24 +0800 Subject: [PATCH] Fix crash on clicking search when no search result --- src/net/micode/notes/ui/NoteEditActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/micode/notes/ui/NoteEditActivity.java b/src/net/micode/notes/ui/NoteEditActivity.java index 431db76..96a9ff8 100644 --- a/src/net/micode/notes/ui/NoteEditActivity.java +++ b/src/net/micode/notes/ui/NoteEditActivity.java @@ -482,6 +482,9 @@ public class NoteEditActivity extends Activity implements OnClickListener, @Override public boolean onPrepareOptionsMenu(Menu menu) { + if (isFinishing()) { + return true; + } clearSettingState(); menu.clear(); if (mWorkingNote.getFolderId() == Notes.ID_CALL_RECORD_FOLDER) {