Skip to content

Commit

Permalink
Fix crash on clicking search when no search result
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaozhongliang committed Feb 8, 2012
1 parent 08933dd commit 4ba1cf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/net/micode/notes/ui/NoteEditActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ public void onBackgroundColorChanged() {

@Override
public boolean onPrepareOptionsMenu(Menu menu) {
if (isFinishing()) {
return true;
}
clearSettingState();
menu.clear();
if (mWorkingNote.getFolderId() == Notes.ID_CALL_RECORD_FOLDER) {
Expand Down

0 comments on commit 4ba1cf0

Please sign in to comment.