Skip to content

Commit

Permalink
Fixed player not shown when opening the app by clicking on BCR notifi…
Browse files Browse the repository at this point in the history
…cation (#154)
  • Loading branch information
nicorac committed Dec 24, 2024
1 parent d708558 commit 5434ccc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/pages/main/main.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class MainPage implements AfterViewInit {

// select & play it (need to wait for player initialization)
playItem.selected = true;
this.selectedItem.set(playItem);
this.cdr.detectChanges(); // forcibly detect the .selected change above
await untilTrue(() => this.player()?.recording() === playItem && this.player()!.isReady());
this.player()?.play();
Expand Down

0 comments on commit 5434ccc

Please sign in to comment.