fixed level up animations not properly being displayed

This commit is contained in:
jbohack
2023-01-12 09:48:32 -05:00
parent 66ef5e1dea
commit ff7c3742c0

View File

@@ -557,8 +557,6 @@ static void animation_manager_switch_to_one_shot_view(AnimationManager* animatio
view_stack_remove_view(animation_manager->view_stack, prev_view);
view_stack_add_view(animation_manager->view_stack, next_view);
if (settings->sfw_mode) {
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup1_128x64);
}else {
if (stats.level <= 20) {
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup1_128x64_sfw);
}
@@ -568,6 +566,8 @@ static void animation_manager_switch_to_one_shot_view(AnimationManager* animatio
else {
furi_assert(0);
}
}else {
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup1_128x64);
}
free(settings);
}