From 0abc4080ef5c8acebc2c55427e67e7d7de5e3c7e Mon Sep 17 00:00:00 2001 From: Manoj Das Date: Mon, 1 Apr 2013 11:11:49 +0530 Subject: [PATCH] Favicon issue Change-Id: I02cb25c463d171ba6b50ecc55a1c5a4fc764eeeb --- src/IntBookmarkListForm.cpp | 5 ++--- src/IntPresentationModelBase.cpp | 12 ------------ 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/IntBookmarkListForm.cpp b/src/IntBookmarkListForm.cpp index 9d7074e..fb8d68b 100644 --- a/src/IntBookmarkListForm.cpp +++ b/src/IntBookmarkListForm.cpp @@ -629,12 +629,11 @@ BookmarkListForm::CreateItem(int index, int itemWidth) AppLog("rahul bitmap is null"); } - //pBitmap = FaviconManager::GetInstance()->GetFaviconN(bitmapId); - /*if (pBitmap == null) + if (pBitmap == null) { AppLogDebug("BookmarkListForm::CreateItem bitmap is null"); pBitmap = FaviconManager::GetInstance()->GetDefaultFaviconN(); - }*/ + } pItem->AddElement(Rectangle(x_Margin_Icon, y_Margin_Icon, width_Icon, height_Icon), IDA_FORMAT_ICON, *pBitmap, null); pItem->AddElement(Rectangle(x_Margin_Title, 0, width_Title, itemHeight - height_Url), IDA_FORMAT_SITE, pBookMark->GetBookmarkTitle(),44,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,true); if(__pSearchBar->GetMode() == SEARCH_BAR_MODE_INPUT) diff --git a/src/IntPresentationModelBase.cpp b/src/IntPresentationModelBase.cpp index c0fa1f4..d6826c6 100644 --- a/src/IntPresentationModelBase.cpp +++ b/src/IntPresentationModelBase.cpp @@ -457,12 +457,6 @@ PresentationModelBase::ExecuteBookmarkQuery(const Tizen::Base::String& formatQue { __pDbStatement->BindBlob(6,*(bookmark.GetFavIconBuffer())); } - else - { - ByteBuffer buff; - buff.Construct(10); - __pDbStatement->BindBlob(6,buff); - } __pDbStatement->BindInt(7,bookmark.GetFavIconWidth()); __pDbStatement->BindInt(8,bookmark.GetFavIconHeight()); @@ -580,12 +574,6 @@ PresentationModelBase::ExecuteHistoryQuery(const Tizen::Base::String& formatQuer { __pDbStatement->BindBlob(3,*(history.GetFavIconBuffer())); } - else - { - ByteBuffer buff; - buff.Construct(10); - __pDbStatement->BindBlob(3,buff); - } __pDbStatement->BindInt(4,history.GetFavIconWidth()); __pDbStatement->BindInt(5,history.GetFavIconHeight()); -- 2.7.4