delete pEnum;
AppAssertf(GetAppFrame() != null && GetAppFrame()->GetFrame() != null, "[E_FAILURE] Unable to get frame.");
+
+ // Todo: temporary solution for appcontrol.
+ GetAppFrame()->GetFrame()->SetEnabled(true);
GetAppFrame()->GetFrame()->Invalidate(true);
}
void
MonthPanel::OnDateFocused(const DateTime& focusedDate)
{
- AppLogDebug("focusedDate: %ls", focusedDate.ToString().GetPointer());
DateTime adjustFocusedDate = focusedDate;
adjustFocusedDate.AddMonths(__pPm->GetCurrentMonth() - adjustFocusedDate.GetMonth());
adjustFocusedDate.AddYears(__pPm->GetCurrentYear() - adjustFocusedDate.GetYear());
- AppLogDebug("adjustFocusedDate: %ls", adjustFocusedDate.ToString().GetPointer());
__pPm->SetCurrentDate(adjustFocusedDate);
__pListViewEvent->UpdateList();
}
void
MonthPanel::OnForeground(void)
{
+ AppLogDebug("Enter");
__pPanningAnimationManager->ResetPosition();
}
void
ReminderForm::OnKeypadWillOpen(Tizen::Ui::Control& source)
{
- __pContextMenuTimeUnitSelector->SetShowState(false);
- __pButtonReminderTimeUnit->SetEnabled(false);
}
void
ReminderForm::OnKeypadOpened(Tizen::Ui::Control& source)
{
- __pButtonReminderTimeUnit->SetEnabled(true);
- __pButtonReminderTimeUnit->Invalidate(true);
-
+ if (__pButtonReminderTimeUnit->IsVisible())
+ {
+ Point point = __pButtonReminderTimeUnit->ConvertToScreenPosition(__pButtonReminderTimeUnit->GetPosition());
+ point.x -= __pButtonReminderTimeUnit->GetWidth();
+ __pContextMenuTimeUnitSelector->SetAnchorPosition(point);
+ __pContextMenuTimeUnitSelector->Invalidate(false);
+ }
}
void
ReminderForm::OnKeypadClosed(Tizen::Ui::Control& source)
{
- __pContextMenuTimeUnitSelector->SetShowState(false);
+ if (__pButtonReminderTimeUnit->IsVisible())
+ {
+ Point point = __pButtonReminderTimeUnit->ConvertToScreenPosition(__pButtonReminderTimeUnit->GetPosition());
+ point.x -= __pButtonReminderTimeUnit->GetWidth();
+ __pContextMenuTimeUnitSelector->SetAnchorPosition(point);
+ __pContextMenuTimeUnitSelector->Invalidate(false);
+ }
}
void
ReminderForm::OnKeypadActionPerformed(Tizen::Ui::Control& source, Tizen::Ui::KeypadAction keypadAction)
delete __pCalendarbook;
__pCalendarbook = null;
+
return E_SUCCESS;
}
pArgs->Add(new (std::nothrow) String(KEY_DATA_PATH), pPaths);
result r = AppControl::FindAndStart(operationId, &uri, null, null, pArgs, null);
+ AppLogExceptionIf(IsFailed(r), "[%s] Failed to find and start appcontrol.", GetErrorMessage(r));
delete pArgs;
- // Todo: temporary solution for delay that between launching appcontrol.
+ // Todo: temporary solution for appcontrol.
if (!IsFailed(r))
{
- Runtime::Thread::Sleep(1500);
+ UiApp::GetInstance()->GetAppFrame()->GetFrame()->SetEnabled(false);
}
SetShowState(false);