mirror of https://github.com/MiCode/Notes.git
Fix crash on clicking search when no search result
This commit is contained in:
parent
08933ddc6e
commit
4ba1cf0108
|
@ -482,6 +482,9 @@ public class NoteEditActivity extends Activity implements OnClickListener,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onPrepareOptionsMenu(Menu menu) {
|
public boolean onPrepareOptionsMenu(Menu menu) {
|
||||||
|
if (isFinishing()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
clearSettingState();
|
clearSettingState();
|
||||||
menu.clear();
|
menu.clear();
|
||||||
if (mWorkingNote.getFolderId() == Notes.ID_CALL_RECORD_FOLDER) {
|
if (mWorkingNote.getFolderId() == Notes.ID_CALL_RECORD_FOLDER) {
|
||||||
|
|
Loading…
Reference in New Issue