This commit is contained in:
Vadim 2023-07-06 18:15:20 +02:00
parent e165b53ef2
commit 205255b916

View file

@ -10,7 +10,6 @@ class VolumeKeysNotifier extends ChangeNotifier with RouteAware {
VolumeKey _value = VolumeKey.up; VolumeKey _value = VolumeKey.up;
VolumeKeysNotifier(this.volumeEventsService) { VolumeKeysNotifier(this.volumeEventsService) {
// TODO: add RouteObserver and disable overriden action if SettingScreen is opened
_volumeKeysSubscription = volumeEventsService _volumeKeysSubscription = volumeEventsService
.volumeButtonsEventStream() .volumeButtonsEventStream()
.map((event) => event == 24 ? VolumeKey.up : VolumeKey.down) .map((event) => event == 24 ? VolumeKey.up : VolumeKey.down)