TSAM-12350 App work slowly when scroll up/down of month ( or tap date of next/previou... 67/108667/2 submit/tizen_3.0/20170105.134818
authorNataliia Sydorchuk <n.sydorchuk@samsung.com>
Thu, 5 Jan 2017 10:13:47 +0000 (12:13 +0200)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 5 Jan 2017 12:05:24 +0000 (04:05 -0800)
Change-Id: I5d726fe37047a29d9d3ea9592c2576f020d3a616
Signed-off-by: Nataliia Sydorchuk <n.sydorchuk@samsung.com>
main-app/src/list/CalScheduleListControl.cpp

index e878b23..7acf7ff 100644 (file)
@@ -113,6 +113,9 @@ bool CalScheduleListControl::scrollTo(const CalDate &date, bool *isAlreadyScroll
        CalListGroupTitleItem *topShowingGroupItem = (CalListGroupTitleItem *)__getTopShowingGroupItem();
        if (topShowingGroupItem == NULL) {
                WDEBUG("[mode] topShowingGroupItem == NULL");
+               if (isAlreadyScrolled) {
+                       *isAlreadyScrolled = true;
+               }
                return false;
        }
 
@@ -121,6 +124,9 @@ bool CalScheduleListControl::scrollTo(const CalDate &date, bool *isAlreadyScroll
        if ((target->getDate() < date && target->getNext() == NULL && !__forwardModel->eof()) ||
                (target->getDate() > date && target->getPrevious() == NULL && !__backwardModel->eof())) {
                WDEBUG("[mode] target search fault");
+               if (isAlreadyScrolled) {
+                       *isAlreadyScrolled = true;
+               }
                return false;
        }
        if (topShowingGroupItem->getElmObjectItem() == target->getElmObjectItem()) {