Skip to content

Commit

Permalink
remove not implemented from content fit
Browse files Browse the repository at this point in the history
  • Loading branch information
theScrabi committed Nov 1, 2024
1 parent e15f1d9 commit de393cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ package net.newpipe.newplayer.ui.videoplayer
import android.app.Activity
import android.view.SurfaceView
import androidx.annotation.OptIn
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.layout.wrapContentWidth
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.getValue
Expand All @@ -40,7 +38,6 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.viewinterop.AndroidView
import androidx.lifecycle.Lifecycle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,20 @@ internal fun VideoPlayerMenu(
R.string.menu_item_stretch_video
) {
viewModel.cycleContentFitMode()
showNotYetImplementedToast(context)
}

ContentScale.FIT_INSIDE -> CustomMenuItem(
Icons.Filled.FitScreen,
R.string.menu_item_fit_screen
) {
viewModel.cycleContentFitMode()
showNotYetImplementedToast(context)
}

ContentScale.CROP -> CustomMenuItem(
Icons.Filled.Crop,
R.string.menu_item_crop_video
) {
viewModel.cycleContentFitMode()
showNotYetImplementedToast(context)
}
}

Expand Down

0 comments on commit de393cf

Please sign in to comment.