mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
cleanup
This commit is contained in:
parent
9563127fed
commit
0c05fead8a
@ -38,7 +38,6 @@ import com.github.libretube.util.LocaleHelper
|
||||
import com.github.libretube.util.RetrofitInstance
|
||||
import com.github.libretube.util.ThemeHelper
|
||||
import com.google.android.material.color.DynamicColors
|
||||
import com.google.android.material.color.MaterialColors
|
||||
import com.google.android.material.elevation.SurfaceColors
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
@ -100,7 +99,7 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
navController = findNavController(R.id.fragment)
|
||||
binding.bottomNav.setupWithNavController(navController)
|
||||
|
||||
|
||||
// gets the surface color of the bottom navigation view
|
||||
val color = SurfaceColors.getColorForElevation(this, 10F)
|
||||
|
||||
|
@ -719,7 +719,7 @@ class PlayerFragment : Fragment() {
|
||||
params.height = videoSize.height / videoSize.width * params.width
|
||||
binding.player.layoutParams = params
|
||||
binding.player.requestLayout()
|
||||
(binding.mainContainer.layoutParams as ConstraintLayout.LayoutParams).apply{
|
||||
(binding.mainContainer.layoutParams as ConstraintLayout.LayoutParams).apply {
|
||||
matchConstraintPercentHeight = (videoSize.height / videoSize.width).toFloat()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user