void Component::Impl::OnStart(AppControl control, bool restarted) {
parent_->OnBaseStart(control, restarted);
- state_ = State::Started;
- aul_comp_status_update(inst_id_.c_str(), COMP_STATUS_STARTED);
+ if (state_ == State::Created ||
+ state_ == State::Paused ||
+ state_ == State::Stopped) {
+ state_ = State::Started;
+ aul_comp_status_update(inst_id_.c_str(), COMP_STATUS_STARTED);
+ }
}
void Component::Impl::OnResume() {
}
void FrameComponent::OnBaseStart(AppControl control, bool restarted) {
+ if (GetState() == State::Running)
+ return;
+
tizen_base::Bundle content = GetContent();
OnBaseRestoreContent(content);
OnStart(control, restarted);