Change-Id: I21b6f71e0202a4be90189352a9c5153a0ff648e1
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
}
}
-bool MsgUtils::isSms(Message::Type type)
+bool isSms(Message::Type type)
{
return type == Message::MT_SMS;
}
* @brief A Layout that shows a message text when ThreadList is empty
*/
class NoContentLayout
- : public View
- {
+ : public View {
public:
NoContentLayout(Evas_Object *parent);
virtual ~NoContentLayout();
int ThreadList::cmpFunc(const ListItem &item1, const ListItem &item2)
{
bool isTh1 = isThreadItem(item1);
- bool isTh2 = isThreadItem(item2);
+ bool isTh2 = isThreadItem(item2); // New inserted item
if (!isTh1 && !isTh2)
return 0;
- if (isTh2) {
+ if (isTh2 && !isTh1) {
auto *self = static_cast<ThreadList*>(item1.getOwner());
return self->m_pBottomPadItem->isSame(item1) ? 1 : -1;
}