Skip to content

Commit

Permalink
[create-pull-request] automated change (#19169)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Dec 4, 2023
1 parent 1f21047 commit 1ce9628
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Essentials/src/Battery/Battery.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public double ChargeLevel
using (var filter = new IntentFilter(Intent.ActionBatteryChanged))
using (var battery = PlatformUtils.RegisterBroadcastReceiver(null, filter, false))
{
if(battery is null)
if (battery is null)
return -1; // Unknown

var level = battery.GetIntExtra(BatteryManager.ExtraLevel, -1);
Expand Down
4 changes: 2 additions & 2 deletions src/Essentials/test/DeviceTests/Tests/Battery_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ public void App_Is_Not_Lower_Power_mode()

[Fact]
public void Unsubscribe_BatteryInfoChanged_Does_Not_Crash()
{
{
// TODO: the test runner app (UI version) should do this, until then...
if (!HardwareSupport.HasBattery)
return;

Battery.BatteryInfoChanged -= (sender, args) => { };
Battery.BatteryInfoChanged -= (sender, args) => { };
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ CommandResponse TapCoordinates(IDictionary<string, object> parameters)

return CommandResponse.FailedEmptyResponse;
}

static AppiumElement? GetAppiumElement(object element)
{
if (element is AppiumElement appiumElement)
Expand Down
4 changes: 2 additions & 2 deletions src/TestUtils/src/UITest.Appium/Actions/AppiumSwipeActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ static void SwipeToLeft(AppiumDriver driver, AppiumElement? element, double swip

int startX = (int)(position.X + (size.Width * swipePercentage));
int startY = position.Y + size.Height / 2;
int endX = (int)(position.X + (size.Width * 0.05));

int endX = (int)(position.X + (size.Width * 0.05));
int endY = startY;

new TouchAction(driver)
Expand Down
4 changes: 2 additions & 2 deletions src/TestUtils/src/UITest.Appium/HelperExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ public static void SwipeRightToLeft(this IApp app, string marked, double swipePe
{ "swipeSpeed", swipeSpeed },
{ "withInertia", withInertia }
});
}
}

/// Changes the device orientation to landscape mode.
/// </summary>
/// <param name="app">Represents the main gateway to interact with an app.</param>
Expand Down

0 comments on commit 1ce9628

Please sign in to comment.