Skip to content

Commit

Permalink
[NUI] Change Accessibility.cs don't use net6.0 specific function
Browse files Browse the repository at this point in the history
Let we minimize the net core dependency

Signed-off-by: Eunki, Hong <[email protected]>
  • Loading branch information
Eunki, Hong authored and hinohie committed Oct 25, 2023
1 parent 23fbd19 commit 54c0a28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Tizen.NUI/src/public/Accessibility/Accessibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@ public enum SayFinishedState

private static void SayFinishedEventCallback(string status)
{
var result = sayFinishedStateDictionary.GetValueOrDefault(status, SayFinishedState.Invalid);
SayFinishedState result;
if (!sayFinishedStateDictionary.TryGetValue(status, out result))
{
result = SayFinishedState.Invalid;
}
NUILog.Debug($"sayFinishedEventCallback(res={result}) called!");

SayFinished?.Invoke(typeof(Accessibility), new SayFinishedEventArgs(result));
Expand Down

0 comments on commit 54c0a28

Please sign in to comment.