if (__manualBrightness == true)
{
PowerManager::SetScreenBrightness(value);
+ AppRegistry* pAppRegistry = App::GetInstance()->GetAppRegistry();
+ String sliderKey("SliderValue");
+ if (pAppRegistry)
+ {
+ pAppRegistry->Set(sliderKey,value);
+ }
}
}
else
{
int count = 0;
+ if (__searchText.GetLength() > 0)
+ {
+ __searchText.Replace(L"%", L"/%");
+ __searchText.Replace(L"_", L"/_");
+ }
// String searchText = __pSearchBar->GetText();
result r = HistoryPresentationModel::GetInstance()->GetSearchHistoryCount(count, __searchText);
if(count)
{
return null;
}
+
if (__searchHistory == false)
{
startTime = pGroupItemClass->GetStartTime();
query.Append(historyTable);
query.Append(L".TITLE LIKE '%");
query.Append(text);
- query.Append("%')");
+ query.Append("%' ESCAPE '/')");
query.Append(" OR ");
query.Append(L"(");
query.Append(historyTable);
query.Append(L".ADDRESS LIKE '%");
query.Append(text);
- query.Append("%')");
+ query.Append("%' ESCAPE '/')");
query.Append(" ORDER BY VISITDATE DESC");
query.Append(historyTable);
query.Append(L".TITLE LIKE '%");
query.Append(text);
- query.Append("%')");
+ query.Append("% 'ESCAPE '/')");
query.Append(" OR ");
query.Append(L"(");
query.Append(historyTable);
query.Append(L".ADDRESS LIKE '%");
query.Append(text);
- query.Append("%')");
+ query.Append("%' ESCAPE '/')");
query.Append(" ORDER BY VISITDATE DESC");
r = HistoryPresentationModel::ExecuteQuery(query, count);
result
HistoryPresentationModel::GetMostVisitedSites(ArrayList& pHistoryList)
{
-
int count = -1;
String query;
String historyTable(HISTORY_DATA_TABLE);
Color pressedTextColor = CUSTOM_COLOR_LISTVIEW_TEXT;
AppLogDebug("RadioCustomItem::the text is %ls",__text.GetPointer());
- r = AddElement(Rectangle(16, 5, __width - 16 , __height), IDA_FORMAT_STRING, __text, __fontSize, textColor, textColor, textColor, true);
+ r = AddElement(Rectangle(16, 5, __width - 60 , __height), IDA_FORMAT_STRING, __text, __fontSize, textColor, textColor, textColor, true);
TryCatch(!IsFailed(r),,"RadioCustomItem::the value is %s",GetErrorMessage(r));
CATCH: