Skip to content

Commit

Permalink
fix: indentation and unnecessary trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
anshtya committed Sep 3, 2023
1 parent c29c56b commit 5600d28
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class AudioPlayerFragment : Fragment(), AudioPlayerOptions {
val bundle = bundleOf(
IntentData.id to currentVideo.url!!.toID(),
IntentData.shareObjectType to ShareObjectType.VIDEO,
IntentData.shareData to ShareData(currentVideo = currentVideo.title),
IntentData.shareData to ShareData(currentVideo = currentVideo.title)
)
val newShareDialog = ShareDialog()
newShareDialog.arguments = bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class ChannelFragment : Fragment() {
val bundle = bundleOf(
IntentData.id to channelId.toID(),
IntentData.shareObjectType to ShareObjectType.CHANNEL,
IntentData.shareData to shareData,
IntentData.shareData to shareData
)
val newShareDialog = ShareDialog()
newShareDialog.arguments = bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
IntentData.shareData to ShareData(
currentVideo = streams.title,
currentPosition = exoPlayer.currentPosition / 1000
),
)
)
val newShareDialog = ShareDialog()
newShareDialog.arguments = bundle
Expand Down Expand Up @@ -760,7 +760,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
if (binding.playerMotionLayout.progress != 1.0f) {
// show controllers when not in picture in picture mode
val inPipMode = PlayerHelper.pipEnabled &&
PictureInPictureCompat.isInPictureInPictureMode(requireActivity())
PictureInPictureCompat.isInPictureInPictureMode(requireActivity())
if (!inPipMode) {
binding.player.useController = true
}
Expand Down Expand Up @@ -1026,8 +1026,8 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
}.orEmpty()
binding.additionalVideoInfo.text =
"${context?.getString(R.string.category)}: ${streams.category}\n" +
"${context?.getString(R.string.license)}: ${streams.license}\n" +
"${context?.getString(R.string.visibility)}: $visibility"
"${context?.getString(R.string.license)}: ${streams.license}\n" +
"${context?.getString(R.string.visibility)}: $visibility"

if (streams.tags.isNotEmpty()) {
binding.tagsRecycler.layoutManager =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ChannelOptionsBottomSheet(
val bundle = bundleOf(
IntentData.id to channelId,
IntentData.shareObjectType to ShareObjectType.CHANNEL,
IntentData.shareData to shareData,
IntentData.shareData to shareData
)
val newShareDialog = ShareDialog()
newShareDialog.arguments = bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DownloadOptionsBottomSheet(
val bundle = bundleOf(
IntentData.id to download.videoId,
IntentData.shareObjectType to ShareObjectType.CHANNEL,
IntentData.shareData to shareData,
IntentData.shareData to shareData
)
val newShareDialog = ShareDialog()
newShareDialog.arguments = bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class PlaylistOptionsBottomSheet(
val bundle = bundleOf(
IntentData.id to playlistId,
IntentData.shareObjectType to ShareObjectType.PLAYLIST,
IntentData.shareData to shareData,
IntentData.shareData to shareData
)
val newShareDialog = ShareDialog()
newShareDialog.arguments = bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class VideoOptionsBottomSheet(
val bundle = bundleOf(
IntentData.id to videoId,
IntentData.shareObjectType to ShareObjectType.VIDEO,
IntentData.shareData to shareData,
IntentData.shareData to shareData
)
val newShareDialog = ShareDialog()
newShareDialog.arguments = bundle
Expand Down

0 comments on commit 5600d28

Please sign in to comment.