CATCH:
delete pEditBgBitmap;
delete pEditBgEffectBitmap;
+ delete pReplacementColorBackgroundBitmap;
return r;
}
GET_COLOR_CONFIG(EDIT::CLEAR_ICON_NORMAL, editClearIconColor);
}
- pEditReplacedBitmapClear = _BitmapImpl::GetColorReplacedBitmapN(*pEditBitmapClear, Color::GetColor(COLOR_ID_MAGENTA),
- editClearIconColor);
- if (pEditReplacedBitmapClear == null)
- {
- return E_SYSTEM;
- }
FloatRectangle textRect = __textObjectBounds;
FloatRectangle afterClearIconRect(textRect.x + textRect.width, textRect.y + (textRect.height - clearIconHeight) / 2.0f, clearIconWidth, clearIconHeight);
+ FloatRectangle editBounds = __pEdit->GetBoundsF();
+
+ pEditReplacedBitmapClear = _BitmapImpl::GetColorReplacedBitmapN(*pEditBitmapClear, Color::GetColor(COLOR_ID_MAGENTA),
+ editClearIconColor);
+ SysTryCatch(NID_UI_CTRL, pEditReplacedBitmapClear, , r = E_SYSTEM, "[E_SYSTEM] Unable to create an instance .");
+
if (__clearIconBounds != afterClearIconRect)
{
__clearIconBounds = afterClearIconRect;
__pEdit->UpdateAccessibilityElement(EDIT_ACCESSIBILITY_ELEMENT_TYPE_CLEAR_ICON);
}
- FloatRectangle editBounds = __pEdit->GetBoundsF();
if (editBounds.height < clearIconHeight)
{
__clearIconBounds.y = textRect.y;
}
return r;
+
+CATCH:
+ delete pEditBitmapClear;
+
+ return r;
}
result
delete __pCommandButton;
__pCommandButton = null;
+ delete pReplacementColorBackgroundBitmap;
+
return r;
}
bool
_EditPresenter::IsUnsupportedChracterExist(const KeypadStyle keypadStyle, const Tizen::Base::String& text)
{
- if (!(keypadStyle == KEYPAD_STYLE_NUMBER || keypadStyle == KEYPAD_STYLE_PHONE_NUMBER || keypadStyle == KEYPAD_STYLE_IP_V4))
- {
- return false;
- }
-
const int numberOfCharOnNumOnlyStyle = 10;
const int numberOfCharOnPhoneNumStyle = 13;
const int numberOfCharOnIpStyle = 18;