[AT-SPI] Erase DirectReading callback conditionally 63/244363/13
authorArtur Świgoń <a.swigon@samsung.com>
Thu, 17 Sep 2020 17:06:20 +0000 (19:06 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Fri, 23 Oct 2020 13:01:46 +0000 (15:01 +0200)
Change-Id: Idd659ee5a5b8dd5bc9e4ce166622f9e02091de67

dali/internal/accessibility/bridge/bridge-impl.cpp

index 06d940ec09de995ea3ced839397a9ff8bc5437fd..4c0b0b1d6113fc707dec42524f68c1c65ba1febb 100644 (file)
@@ -212,7 +212,8 @@ public:
         if (it != directReadingCallbacks.end())
         {
           it->second( readingState );
-          directReadingCallbacks.erase( it );
+          if (readingState != "ReadingPaused" && readingState != "ReadingResumed" && readingState != "ReadingStarted")
+            directReadingCallbacks.erase( it );
         }
       }
     );