1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:03:11 +08:00
osu-lazer/osu.Android
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>
2021-04-07 15:56:50 -04:00
..
Properties Send a warning notification if device is unplugged and low battery 2021-04-07 15:56:50 -04:00
Resources/drawable Update android icon 2019-07-12 18:24:49 +09:00
GameplayScreenRotationLocker.cs Trigger lock update on loading. 2020-10-19 10:01:24 +02:00
osu.Android.csproj Disable sdk linker for android debug releases 2021-04-05 19:36:38 +09:00
OsuGameActivity.cs Apply missing additions to android project 2021-03-08 15:22:03 +09:00
OsuGameAndroid.cs Remove unused using statements 2020-12-14 18:13:32 +09:00