Skip to content

Commit

Permalink
fix: pip black screen
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Feb 5, 2024
1 parent 2bc89dc commit 7879155
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -179,26 +179,6 @@ void _initLifeCycle() {

NamidaChannel.inst.addOnResume('main', () async {
CurrentColor.inst.refreshColorsAfterResumeApp();
await NamidaNavigator.inst.exitFullScreen();
});

NamidaChannel.inst.addOnSuspending('pip', () async {
if (settings.enablePip.value && Player.inst.isPlaying && Player.inst.videoInitialized) {
await NamidaNavigator.inst.enterFullScreen(
Container(
color: Colors.black,
alignment: Alignment.topLeft,
child: const NamidaVideoWidget(
key: Key('pip_widget_child'),
enableControls: false,
fullscreen: true,
isPip: true,
isLocal: true,
),
),
setOrientations: false,
);
}
});
}

Expand Down

0 comments on commit 7879155

Please sign in to comment.