Change-Id: I881b333dd532d53907e7350ffa88cdc8bc81d84e
Signed-off-by: hyunho <hhstark.kang@samsung.com>
int item_type = target.GetType();
switch (type) {
+ case MainNone:
+ return true;
case MainTitle:
case MainContents:
if (item_type != Text)
AbstractItem& target = FindByID(target_id);
if (target.GetType() == NullObject)
return false;
+
+ if (type == MainNone) {
+ LOGW("Clear main type from %s", target_id.c_str());
+ target.impl_->main_type_ = MainNone;
+ return true;
+ }
+
if (!impl_->IsValidMainType(target, type)) {
LOGE("Main type and item type are not matched (%d, %d)",
type, target.GetType());