Fix wrong log value
[platform/core/api/notification.git] / notification-ex / text_item.cc
index fa0696e..b25cdbe 100644 (file)
@@ -70,10 +70,10 @@ void TextItem::Deserialize(Bundle b) {
   impl_->hyperlink_ = b.GetString(TEXT_HYPERLINK_KEY);
 }
 
-AbstractItem& TextItem::FindByID(std::string id) {
-  if (GetId() == id)
-    return *this;
-  return FactoryManager::GetInst().GetNullItem();
+bool TextItem::IsItemTypeExist(int type) {
+  if (GetType() == type)
+    return true;
+  return false;
 }
 
 void TextItem::SetContents(std::string contents) {