Remove un-used vconf key 95/217895/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191118.084840 accepted/tizen/5.5/unified/wearable/hotfix/20201027.094459 submit/tizen_5.5/20191115.092425 submit/tizen_5.5_wearable_hotfix/20201026.184309
authorallu.k <allu.k@samsung.com>
Fri, 15 Nov 2019 09:02:15 +0000 (14:32 +0530)
committerAllu Krishna Sai Teja <allu.k@samsung.com>
Fri, 15 Nov 2019 09:14:05 +0000 (09:14 +0000)
Change-Id: I5560422756d0c442d5722c2ab7e0c1c177cc06cd
Signed-off-by: allu.k <allu.k@samsung.com>
(cherry picked from commit 836c8a855e66950e89bf6600fe6e11019b1e87a5)

src/key_event.c

index 947a65dfd77847b281960b0c367b9c5bcd0a2a87..0f7f74d9198088262bb568d042d8dad267a4e027 100755 (executable)
@@ -470,22 +470,12 @@ static Eina_Bool _key_press_cb(void *data, int type, void *event)
        retvm_if(key_status == 2, ECORE_CALLBACK_CANCEL, "starter use volume key. status : 2");
 
 #ifndef FEATURE_SDK
-       int is_call = -1;
        if (!strncmp(ev->keyname, KEY_MUTE, strlen(KEY_MUTE))) {
                _D("MUTE key is pressed");
                if (VOLUME_ERROR_OK != _mute_key_press())
                        _E("Failed to press MUTE key");
                return ECORE_CALLBACK_CANCEL;
        }
-
-       if (vconf_get_int(VCONFKEY_TELEPHONY_CALL_STATE, &is_call) < 0 || is_call < 0) {
-               _E("Failed to get call state vconf");
-               return ECORE_CALLBACK_CANCEL;
-       }
-       if (is_call > 0) {
-               _D("Call is active");
-               return ECORE_CALLBACK_CANCEL;
-       }
 #endif
 
        status = volume_control_check_status(&lock, &sound_type);