X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Ffocus-manager%2Ffocus-manager-impl.cpp;h=8d90de6bd6e56454de8a5415954dfd68ec0b8fed;hp=dbf414674a83b874fd47ff38aa5e56a0e62707a8;hb=6bd365b36b760071cd018d618124c8cd21db874f;hpb=2d41a1e273a45aa9a75c2d1854447d83f22ab740 diff --git a/base/dali-toolkit/internal/focus-manager/focus-manager-impl.cpp b/base/dali-toolkit/internal/focus-manager/focus-manager-impl.cpp index dbf4146..8d90de6 100644 --- a/base/dali-toolkit/internal/focus-manager/focus-manager-impl.cpp +++ b/base/dali-toolkit/internal/focus-manager/focus-manager-impl.cpp @@ -338,7 +338,10 @@ bool FocusManager::DoSetCurrentFocusActor(const unsigned int actorID) if(mIsAccessibilityTtsEnabled) { Dali::SoundPlayer soundPlayer = Dali::SoundPlayer::Get(); - soundPlayer.PlaySound(FOCUS_SOUND_FILE); + if(soundPlayer) + { + soundPlayer.PlaySound(FOCUS_SOUND_FILE); + } // Play the accessibility attributes with the TTS player. Dali::TtsPlayer player = Dali::TtsPlayer::Get(Dali::TtsPlayer::SCREEN_READER); @@ -573,7 +576,10 @@ bool FocusManager::DoMoveFocus(FocusIDIter focusIDIter, bool forward, bool wrapp { // play sound & skip moving once Dali::SoundPlayer soundPlayer = Dali::SoundPlayer::Get(); - soundPlayer.PlaySound(FOCUS_CHAIN_END_SOUND_FILE); + if(soundPlayer) + { + soundPlayer.PlaySound(FOCUS_CHAIN_END_SOUND_FILE); + } mIsEndcapFeedbackPlayed = true; return true;