Minor code improvement

This commit is contained in:
Naveen Singh 2024-09-09 19:39:09 +05:30
parent 420a0c02d7
commit cf000a6546
No known key found for this signature in database
GPG key ID: 35F7D64346B28ED7
2 changed files with 2 additions and 2 deletions

View file

@ -530,7 +530,7 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
val drawableId = if (isSlow) R.drawable.ic_playback_speed_slow_vector else R.drawable.ic_playback_speed_vector val drawableId = if (isSlow) R.drawable.ic_playback_speed_slow_vector else R.drawable.ic_playback_speed_vector
binding.bottomVideoTimeHolder.videoPlaybackSpeed binding.bottomVideoTimeHolder.videoPlaybackSpeed
.setCompoundDrawablesRelativeWithIntrinsicBounds(resources.getDrawable(drawableId), null, null, null) .setDrawablesRelativeWithIntrinsicBounds(AppCompatResources.getDrawable(this, drawableId))
} }
@SuppressLint("SetTextI18n") @SuppressLint("SetTextI18n")

View file

@ -569,7 +569,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
val drawableId = if (isSlow) R.drawable.ic_playback_speed_slow_vector else R.drawable.ic_playback_speed_vector val drawableId = if (isSlow) R.drawable.ic_playback_speed_slow_vector else R.drawable.ic_playback_speed_vector
binding.bottomVideoTimeHolder.videoPlaybackSpeed binding.bottomVideoTimeHolder.videoPlaybackSpeed
.setCompoundDrawablesRelativeWithIntrinsicBounds(resources.getDrawable(drawableId), null, null, null) .setDrawablesRelativeWithIntrinsicBounds(AppCompatResources.getDrawable(requireContext(), drawableId))
} }
@SuppressLint("SetTextI18n") @SuppressLint("SetTextI18n")