else
{
String tempUrl;
- if(Url.Contains("http://") == true)
+ if((Url.Contains("http://") == true) || (Url.Contains("https://") == true))
{
tempUrl.Append(Url);
}
String key = L"http://tizen.org/setting/screen.brightness" ;
int sliderValue = 10;
SettingInfo::GetValue(key,sliderValue);
- __pBrightnessSlider->SetValue(sliderValue/10);
+ if( (sliderValue/10) + 1 > 10)
+ __pBrightnessSlider->SetValue(10);
+ else
+ __pBrightnessSlider->SetValue((sliderValue/10) + 1);
__pBrightnessSlider->Invalidate(true);
}
}
if (flag == true)
{
String validUrl;
- if(urlText.Contains("http://") == true)
+ if((urlText.Contains("http://") == true) || (urlText.Contains("https://") == true))
{
validUrl.Append(urlText);
}
else if (key == L"http://tizen.org/setting/screen.brightness" )
{
AppRegistry* pAppRegistry = App::GetInstance()->GetAppRegistry();
-
+ result r = E_SUCCESS;
int sliderValue = 10;
SettingInfo::GetValue(key,sliderValue);
String sliderKey("SliderValue");
- result r = pAppRegistry->Set(sliderKey, sliderValue/10);
+ if( (sliderValue/10) + 1 > 10)
+ r = pAppRegistry->Set(sliderKey, 10);
+ else
+ r = pAppRegistry->Set(sliderKey, (sliderValue/10) + 1);
pAppRegistry->Save();
Form* pCurrentForm = null;
pCurrentForm->SendUserEvent(DEVICE_BRIGHTNESS_CHANGE_EVENT, NULL);
}
- r = PowerManager::SetScreenBrightness(sliderValue/10);
+ if( (sliderValue/10) + 1 > 10)
+ r = PowerManager::SetScreenBrightness(10);
+ else
+ r = PowerManager::SetScreenBrightness((sliderValue/10) + 1);
// r = PowerManager::RestoreScreenBrightness();
}
{
result r = E_SUCCESS;
ContextMenuAnchorDirection direction = CONTEXT_MENU_ANCHOR_DIRECTION_AUTO;
+ String srcUrl = __pHitElementResult->GetAttributeValue(L"src");
AppLog("MainForm::InitImageContextMenu clicked on image");
if (__pImageMenu != null)
r = __pImageMenu->Construct(p, CONTEXT_MENU_STYLE_LIST, direction);
TryCatch(!IsFailed(r),, "Context image menu creation failed with%s",GetErrorMessage(r));
+
r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_COPY_IMAGE"),IDA_COPY_IMAGE_CLICKED);
- r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_VIEW_IMAGE"),IDA_VIEW_IMAGE_CLICKED);
+ AppLog("srcUrl %ls __pWebViewer->GetUrl() %ls",srcUrl.GetPointer(),__pWebViewer->GetUrl().GetPointer());
+
+ if(__pWebViewer && srcUrl.Equals(__pWebViewer->GetUrl(),false) == false)
+ r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_VIEW_IMAGE"),IDA_VIEW_IMAGE_CLICKED);
r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_SAVE_IMAGE"),IDA_SAVE_IMAGE_CLICKED);
r = __pImageMenu->AddItem(CommonUtil::GetString(L"IDS_BR_OPT_SHARE"),IDA_SHARE_IMAGE_CLICKED);
__pImageMenu->SetMaxVisibleItemsCount(4);
{
InitMostVisitedSitesView(GetOrientationStatus());
}
- else if (homePage.CompareTo((L"IDS_BR_BODY_BLANK_PAGE")) == 0)
+ else
{
if(__pMostVisitedListView != null)
{
if (__pMostVisitedListView != null)
{
+ __pMostVisitedListView->SetShowState(true);
return E_SUCCESS;
}