[AT-SPI] Provide correct reading material for Value 62/244362/13
authorArtur Świgoń <a.swigon@samsung.com>
Thu, 17 Sep 2020 16:17:58 +0000 (18:17 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Fri, 23 Oct 2020 13:01:46 +0000 (15:01 +0200)
Change-Id: I0c963541ae2ef8b134196b5d67f9a58ecdb119f0

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

index a08d3396a150f5364f623d0fbea56a413d6f24c2..b8ef11d58d4b6ec7c5a4bc6dc15f34b58ec02e0b 100644 (file)
@@ -277,6 +277,15 @@ BridgeAccessible::ReadingMaterialType BridgeAccessible::GetReadingMaterial()
   double maximumValue = 0.0;
   double minimumValue = 0.0;
 
+  auto *value = dynamic_cast<Dali::Accessibility::Value *>(self);
+  if (value)
+  {
+    currentValue = value->GetCurrent();
+    minimumIncrement = value->GetMinimumIncrement();
+    maximumValue = value->GetMaximum();
+    minimumValue = value->GetMinimum();
+  }
+
   auto description = self->GetDescription();
   auto indexInParent = static_cast< int32_t >( self->GetIndexInParent() );
   bool isSelectedInParent = false;