1. A method in an electronic device, the method comprising: deactivating at least a portion of a touch panel based on a first touch on a fingerprint sensor; and performing fingerprint recognition based on a second touch on the fingerprint sensor.