Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Natanel-Shitrit committed Feb 2, 2024
1 parent f577de2 commit 4dd8105
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/phone/src/main/java/dev/jdtech/jellyfin/PlayerActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ class PlayerActivity : BasePlayerActivity() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S &&
appPreferences.playerPipGesture &&
viewModel.player.isPlaying &&
!isControlsLocked) {
!isControlsLocked
) {
pictureInPicture()
}
}
Expand Down Expand Up @@ -307,10 +308,10 @@ class PlayerActivity : BasePlayerActivity() {
.setSourceRectHint(sourceRectHint)

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
builder.setAutoEnterEnabled(true);
builder.setAutoEnterEnabled(true)
}

return builder.build();
return builder.build()
}

private fun pictureInPicture() {
Expand Down

0 comments on commit 4dd8105

Please sign in to comment.