Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[Tizen] Fix WatchDialog (#14256)
Browse files Browse the repository at this point in the history
  • Loading branch information
sung-su committed May 18, 2021
1 parent 713320f commit 91c2c99
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions Xamarin.Forms.Platform.Tizen/Native/Watch/WatchDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,26 @@ protected override void ApplyButton(ButtonPosition position, EButton button)
switch (position)
{
case ButtonPosition.Neutral:
this.SetButton2Part(button.SetWatchPopupRightStyle());
if (button != null)
button.SetWatchPopupRightStyle();
this.SetButton2Part(button);
break;

case ButtonPosition.Negative:
if (_hasAcceptButton)
if (button != null)
{
button.BackgroundColor = EColor.Default;
this.SetButton1Part(button.SetWatchPopupLeftStyle());
}
else
{
button.BackgroundColor = new EColor(0, 47, 66, 255);
this.SetButton1Part(button.SetBottomStyle());
if (_hasAcceptButton)
{
button.BackgroundColor = EColor.Default;
button.SetWatchPopupLeftStyle();
}
else
{
button.BackgroundColor = new EColor(0, 47, 66, 255);
button.SetBottomStyle();
}
}
this.SetButton1Part(button);
break;

case ButtonPosition.Positive:
Expand Down

0 comments on commit 91c2c99

Please sign in to comment.