fix: hide bottom player bar companion when fullscreen player is open
This commit is contained in:
parent
6a20172ee4
commit
8d25d641a4
2 changed files with 14 additions and 1 deletions
|
|
@ -2591,5 +2591,17 @@ fn test_ext_19_official_settings_sound_quality_equalizer_and_shortcuts_modals()
|
|||
let img_th = render_single_frame(&mut vk, &mut shell, 0.064);
|
||||
assert!(img_th.width() == NATIVE_W && img_th.height() == NATIVE_H);
|
||||
}
|
||||
|
||||
// Regression: Fullscreen player must NOT leak the bottom PlayerBar companion on top of it!
|
||||
shell.app.config.player_thumb = yandex_music_rs::config::PlayerThumbStyle::Claudik;
|
||||
shell.app.fullscreen_open = true;
|
||||
let img_fs_claudik = render_single_frame(&mut vk, &mut shell, 0.080);
|
||||
shell.app.config.player_thumb = yandex_music_rs::config::PlayerThumbStyle::Standard;
|
||||
let img_fs_std = render_single_frame(&mut vk, &mut shell, 0.080);
|
||||
assert_eq!(
|
||||
img_fs_claudik.as_raw(),
|
||||
img_fs_std.as_raw(),
|
||||
"Fullscreen player leaked bottom PlayerBar companion onto ZLayer::Popover!"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue