From 0b72f83f14e86378e1efdb1f70d186d7761ffe76 Mon Sep 17 00:00:00 2001 From: Sooyeon Kim Date: Thu, 8 Oct 2020 07:17:47 +0000 Subject: [PATCH] Revert "Add a checker of screen reader in tts_prepare()" This reverts commit f99e7d39fd5a4f411af74f2b04a58f1d7635657f. Change-Id: I67127188dfc8e454b771fada76692cafc46abd64 --- client/tts.c | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/client/tts.c b/client/tts.c index f90c470..f8f1862 100644 --- a/client/tts.c +++ b/client/tts.c @@ -1183,22 +1183,6 @@ static Eina_Bool __send_hello(void *data) return EINA_FALSE; } - /* check screen reader */ - int ret = -1; - if (TTS_MODE_SCREEN_READER == client->mode) { - ret = __tts_recheck_screen_reader(); - if (0 != ret) { - SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Fail to get screen reader vconf(%d)", ret); - } else { - if (false == g_screen_reader) { - SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Screen reader option is NOT available. Do not request to prepare"); - client->hello_timer = NULL; - g_prepare_timer = NULL; - return EINA_FALSE; - } - } - } - SLOG(LOG_ERROR, TAG_TTSC, "[INFO] tts_h(%p), tts_client(%p), uid(%d)", tts, client, client->uid); bool is_launched = __is_engine_launched(g_engine_appid); @@ -1219,7 +1203,7 @@ static Eina_Bool __send_hello(void *data) } /* Send hello */ - ret = tts_dbus_request_hello(client->uid); + int ret = tts_dbus_request_hello(client->uid); if (0 != ret) { SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Fail to request hello !!"); //LCOV_EXCL_LINE } else { @@ -1274,21 +1258,6 @@ int tts_prepare(tts_h tts) return TTS_ERROR_INVALID_STATE; } - int ret = -1; - if (false == g_screen_reader && TTS_MODE_SCREEN_READER == client->mode) { - /* check screen reader option one more time */ - ret = __tts_recheck_screen_reader(); - if (0 != ret) { - SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Fail to get screen reader vconf(%d)", ret); - return TTS_ERROR_INVALID_STATE; - } else { - if (false == g_screen_reader) { - SLOG(LOG_ERROR, TAG_TTSC, "[ERROR] Screen reader option is NOT available."); - return TTS_ERROR_INVALID_STATE; - } - } - } - SLOG(LOG_ERROR, TAG_TTSC, "[INFO] tts_h(%p), tts_client(%p), uid(%d)", tts, client, client->uid); if (NULL == client->hello_timer) { -- 2.7.4