OnWindowFocusChanged can be called when the window is created.
In that case, GetFocusActorFromCurrentWindow() will return empty Actor handle.
SetCurrentFocusActor() doesn't consider empty-handle input case. So we should skip
if GetFocusActorFromCurrentWindow() returns empty handle.
Change-Id: I440e60f7c46e234876a4d5af50445477b88e35f7
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
// Get Current Focused Actor from window
Actor currentFocusedActor = GetFocusActorFromCurrentWindow();
// Get Current Focused Actor from window
Actor currentFocusedActor = GetFocusActorFromCurrentWindow();
- SetCurrentFocusActor(currentFocusedActor);
-
- if(currentFocusedActor && (mEnableFocusIndicator == ENABLE))
+ if(currentFocusedActor)
- // Make sure the focused actor is highlighted
- currentFocusedActor.Add(GetFocusIndicatorActor());
- mIsFocusIndicatorShown = SHOW;
+ SetCurrentFocusActor(currentFocusedActor);
+
+ if(mEnableFocusIndicator == ENABLE)
+ {
+ // Make sure the focused actor is highlighted
+ currentFocusedActor.Add(GetFocusIndicatorActor());
+ mIsFocusIndicatorShown = SHOW;
+ }