fix logical error on showing note dialog

Change-Id: I9f45348a87a9e753626276a8df4b5d5c60b29a0b