Adopt to screen reader new logs 08/240008/2
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Fri, 31 Jul 2020 09:06:05 +0000 (11:06 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Fri, 31 Jul 2020 12:42:36 +0000 (14:42 +0200)
Allow universal_switch to find logs after screen reader
refactoring.

Change-Id: Ia2bce628d271a5e3845d5020a1b1ee6357192a01

src/batch/BatchRunner.cpp

index 31ad91aa0d734c3b0ea4ed07a39db69c2e4f9877..c5781863fa57b1e7f6aa9e82125a5c8ab3c12299 100644 (file)
@@ -1636,7 +1636,8 @@ static void threadFunc(StatPtr result, std::unique_ptr<BatchExecutor> exec, std:
                                if (!w.searchLine) {
                                        *w.found = true;
                                } else {
-                                       if (txt.find("(tts_speak_customized)") != std::string::npos) {
+                                       if (txt.find("(tts_speak_customized)") != std::string::npos
+                                               || txt.find("(tw_speak_customized)") != std::string::npos) {
                                                static const auto prefix = std::string{ "TTS reading text '" };
                                                static const auto postfix = std::string{ "'" };