Fixed indentation

sorry about the style fixes... I'm using JetBrains Rider from now on.
This commit is contained in:
Christine Chen 2021-04-08 21:53:42 -04:00
parent 6b6a71d3c3
commit 59d13b0dd3
3 changed files with 11 additions and 9 deletions

View File

@ -75,6 +75,7 @@ namespace osu.Android
} }
protected override UpdateManager CreateUpdateManager() => new SimpleUpdateManager(); protected override UpdateManager CreateUpdateManager() => new SimpleUpdateManager();
public class AndroidPowerStatus : PowerStatus public class AndroidPowerStatus : PowerStatus
{ {
public override double ChargeLevel => Battery.ChargeLevel; public override double ChargeLevel => Battery.ChargeLevel;

View File

@ -302,21 +302,21 @@ namespace osu.Game.Tests.Visual.Gameplay
// set charge status and level // set charge status and level
AddStep("load player", () => resetPlayer(false, () => AddStep("load player", () => resetPlayer(false, () =>
{ {
powerStatus.IsCharging = isCharging; powerStatus.IsCharging = isCharging;
powerStatus.ChargeLevel = chargeLevel; powerStatus.ChargeLevel = chargeLevel;
})); }));
AddUntilStep("wait for player", () => player?.LoadState == LoadState.Ready); AddUntilStep("wait for player", () => player?.LoadState == LoadState.Ready);
int notificationCount = !isCharging && chargeLevel <= powerStatus.BatteryCutoff ? 1 : 0; int notificationCount = !isCharging && chargeLevel <= powerStatus.BatteryCutoff ? 1 : 0;
AddAssert("check for notification", () => notificationOverlay.UnreadCount.Value == notificationCount); AddAssert("check for notification", () => notificationOverlay.UnreadCount.Value == notificationCount);
AddStep("click notification", () => AddStep("click notification", () =>
{ {
var scrollContainer = (OsuScrollContainer)notificationOverlay.Children.Last(); var scrollContainer = (OsuScrollContainer)notificationOverlay.Children.Last();
var flowContainer = scrollContainer.Children.OfType<FillFlowContainer<NotificationSection>>().First(); var flowContainer = scrollContainer.Children.OfType<FillFlowContainer<NotificationSection>>().First();
var notification = flowContainer.First(); var notification = flowContainer.First();
InputManager.MoveMouseTo(notification); InputManager.MoveMouseTo(notification);
InputManager.Click(MouseButton.Left); InputManager.Click(MouseButton.Left);
}); });
AddUntilStep("wait for player load", () => player.IsLoaded); AddUntilStep("wait for player load", () => player.IsLoaded);
} }

View File

@ -268,6 +268,7 @@ namespace osu.Game.Screens.Play
} }
#endregion #endregion
protected override void Update() protected override void Update()
{ {
base.Update(); base.Update();