1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-08 04:24:10 +08:00
Files
osu-lazer/osu.Game.Tests/Visual
T
Christine Chen 0a6baf670e Send a warning notification if device is unplugged and low battery
- Uses Xamarin.Essentials in osu.Game.PlayerLoader to check battery level
- Encapsulated battery checking in the public BatteryManager class so battery level and plugged in status can be accessed and edited in TestPlayerLoader
- When checking battery level, catch NotImplementedException thrown by Xamarin.Essentials.Battery on non-mobile platforms
- Added visual unit tests for battery notification
  To mock battery status and level, we had to define a batteryManager object in TestPlayerLoader and add a new function ResetPlayerWithBattery()

Co-Authored-By: Marlina José <marlina@umich.edu>
0a6baf670e · 2021-04-07 15:56:50 -04:00
History
..
2021-02-24 18:49:16 +09:00
2021-04-03 14:02:46 +02:00
2021-04-07 16:45:10 +09:00
2021-03-17 19:07:29 +09:00
2021-03-30 12:40:50 +09:00
2021-03-25 23:20:26 +01:00