Fixed jumping of No events text 53/80653/1
authorAleksandr Sapozhnik <a.sapozhnik@samsung.com>
Tue, 19 Jul 2016 09:38:52 +0000 (12:38 +0300)
committerAleksandr Sapozhnik <a.sapozhnik@samsung.com>
Tue, 19 Jul 2016 09:38:52 +0000 (12:38 +0300)
Change-Id: Id73f91489c90aabce86c0137841bf1029ada1459

main-app/src/main/CalMainView.cpp

index 8b9195f..b0493b6 100644 (file)
@@ -291,12 +291,13 @@ void CalMainView::onCreated()
 
        __createListControl();
 
-       WUiTimer::addTimer(LIST_FOCUS_ACTION_DELAY, [](void* data) {
-                       CalMainView* self = (CalMainView*) data;
-                       self->__focusList();
-               return ECORE_CALLBACK_CANCEL;
-               }, this, getWeakPtr());
-
+       if (!__list->isEmpty()) {
+               WUiTimer::addTimer(LIST_FOCUS_ACTION_DELAY, [](void* data) {
+                               CalMainView* self = (CalMainView*) data;
+                               self->__focusList();
+                       return ECORE_CALLBACK_CANCEL;
+                       }, this, getWeakPtr());
+       }
        __monthSlideAnimator = new CalSlideAnimator(
                getMonth(0).getEvasObj(),
                [this](int dir) {