[Tizen] Fix invalid update to TextUpdateInfo in SELECTING state. 36/260136/1
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 18 Jun 2021 07:42:57 +0000 (16:42 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Mon, 21 Jun 2021 03:02:31 +0000 (12:02 +0900)
commit754ae003c384f87fdd1e1c57d18244e22d8ca43f
tree9dff425e6180d79c1e39e92455a4615b885f77ec
parent40dd9762b4291fe6cce3edfa26c97f695f0867b0
[Tizen] Fix invalid update to TextUpdateInfo in SELECTING state.

mTextUpdateInfo is updated even if no selecting state in SetInputColor().
This causes a crash in some cases.
(When TextColor, InputColor is changed by the user in TextChanged callback)

This patch prevents invalid update of TextUpdateInfo.
Most of the known Text Crash issues are fixed by this patch.

Change-Id: I16488d3a9f9f063c441834f622afbe33b3ea7a74
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/text-controller.cpp