mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-26 01:10:39 +00:00
allow volume action override only on metering screen
This commit is contained in:
parent
cdaf0905da
commit
6ee662d79d
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ class VolumeActionsListTileBloc extends Cubit<VolumeAction> {
|
||||||
|
|
||||||
void onVolumeActionChanged(VolumeAction value) {
|
void onVolumeActionChanged(VolumeAction value) {
|
||||||
_settingsInteractor.setVolumeAction(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);
|
emit(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue