File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ fun PiPBuilderSetAutoEnterEnabled(
77
77
}
78
78
context.findActivity().setPictureInPictureParams(builder.build())
79
79
}
80
- // [END android_compose_pip_builder_auto_enter]
81
80
VideoPlayer (pipModifier)
81
+ // [END android_compose_pip_builder_auto_enter]
82
82
} else {
83
83
Log .i(PIP_TAG , " API does not support PiP" )
84
84
}
@@ -102,7 +102,6 @@ fun EnterPiPThroughButton() {
102
102
Button (onClick = {
103
103
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
104
104
context.findActivity().enterPictureInPictureMode(
105
- // the parameters have been set by previous calls
106
105
PictureInPictureParams .Builder ().build()
107
106
)
108
107
} else {
@@ -339,6 +338,7 @@ fun PiPBuilderAddRemoteActions(
339
338
}
340
339
context.findActivity().setPictureInPictureParams(builder.build())
341
340
}
341
+ VideoPlayer (modifier = pipModifier)
342
342
// [END android_compose_pip_add_remote_actions]
343
343
} else {
344
344
Log .i(PIP_TAG , " API does not support PiP" )
You can’t perform that action at this time.
0 commit comments