From 6ee662d79d2ba3ce2faf8060ffe6b72a9ed5ba99 Mon Sep 17 00:00:00 2001 From: Vadim Date: Thu, 6 Jul 2023 17:49:21 +0200 Subject: [PATCH] allow volume action override only on metering screen --- .../volume_actions/bloc_list_tile_volume_actions.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/screens/settings/components/general/components/volume_actions/bloc_list_tile_volume_actions.dart b/lib/screens/settings/components/general/components/volume_actions/bloc_list_tile_volume_actions.dart index d0a51a9..7af8fb5 100644 --- a/lib/screens/settings/components/general/components/volume_actions/bloc_list_tile_volume_actions.dart +++ b/lib/screens/settings/components/general/components/volume_actions/bloc_list_tile_volume_actions.dart @@ -11,6 +11,10 @@ class VolumeActionsListTileBloc extends Cubit { void onVolumeActionChanged(VolumeAction value) { _settingsInteractor.setVolumeAction(value); + + // while in settings we allow system to handle volume + // so that volume keys action works only when necessary - on the metering screen + _settingsInteractor.disableVolumeHandling(); emit(value); } }