1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00
osu-lazer/osu.Game
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
..
Audio Fix audio previews not being adjusted in volume correctly 2021-02-17 20:51:17 +09:00
Beatmaps Add tests for consecutive perfect-curve segments 2021-04-06 13:32:17 +02:00
Collections Apply ConfigureAwait changes to game side 2021-03-08 14:36:35 +09:00
Configuration Send a warning notification if device is unplugged and low battery 2021-04-07 15:56:50 -04:00
Database Revert EF Core to version 2.2 2021-03-21 11:05:15 +01:00
Extensions Merge branch 'master' into fix-leave-room-race-2 2021-01-30 13:41:04 +01:00
Graphics Fix LabelledTextBox not correctly forwarding focus to its underlying TextBox component 2021-03-17 16:56:58 +09:00
Input Reorder defaults to give non-global areas priority for global actions 2021-04-07 17:42:49 +09:00
IO Add back the default json converter locally to ensure it's actually used 2021-03-19 20:07:13 +09:00
IPC Apply ConfigureAwait changes to game side 2021-03-08 14:36:35 +09:00
Migrations Add flag value to database 2020-10-20 00:46:08 +02:00
Online Fix typo in class name 2021-04-07 16:45:10 +09:00
Overlays Merge branch 'master' into rebind-song-select 2021-04-07 17:13:25 +09:00
Properties
Replays Update HasFlag usages to HasFlagFast 2021-02-25 15:38:56 +09:00
Rulesets Merge pull request #12303 from smoogipoo/fix-last-control-point-segmenting 2021-04-06 13:35:55 +09:00
Scoring Add TODO marking incorrect EF core data type 2021-03-25 17:50:21 +09:00
Screens Send a warning notification if device is unplugged and low battery 2021-04-07 15:56:50 -04:00
Skinning Fix incorrect default font overlap for score and combo 2021-03-26 10:35:46 +03:00
Storyboards Fix xmldoc explaining incorrect behaviour 2021-03-11 12:15:59 +09:00
Tests Merge branch 'master' into fix-overzealousmouse-button-blocking 2021-04-06 16:45:25 +09:00
Updater Update usages of config with framework changes 2021-03-17 16:10:16 +09:00
Users Fix accuracy displaying incorrectly in online contexts 2021-03-30 22:42:32 +09:00
Utils Add the ability to specify format provider (to make tests culture invariant) 2021-03-26 13:10:11 +09:00
osu!.res And then everything became one 2017-09-19 16:06:58 +09:00
osu.Game.csproj Send a warning notification if device is unplugged and low battery 2021-04-07 15:56:50 -04:00
OsuGame.cs Clean up implementation 2021-04-05 22:30:51 +09:00
OsuGameBase.cs Fix gameplay mouse cursor being overridden by menu cursor 2021-04-07 19:00:05 +09:00
PerformFromMenuRunner.cs Add flow to allow MatchSubScreen to handle beatmap presentation locally 2021-03-03 14:13:51 +09:00