[Android] Videoplayer: Fix Chromecast status display
Geoffrey Métais
git at videolan.org
Wed Jul 10 18:43:04 CEST 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 10 18:42:04 2019 +0200| [5f704a6695858e675a11a4e16eed6e07b558aaf1] | committer: Geoffrey Métais
Videoplayer: Fix Chromecast status display
Fix #919
> https://code.videolan.org/videolan/vlc-android/commit/5f704a6695858e675a11a4e16eed6e07b558aaf1
---
vlc-android/res/layout/player_hud_right.xml | 2 +-
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/res/layout/player_hud_right.xml b/vlc-android/res/layout/player_hud_right.xml
index df95780c3..07e0d46aa 100644
--- a/vlc-android/res/layout/player_hud_right.xml
+++ b/vlc-android/res/layout/player_hud_right.xml
@@ -66,7 +66,7 @@
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="@+id/video_secondary_display"
app:layout_constraintTop_toBottomOf="@+id/video_secondary_display"
- app:srcCompat="@drawable/ic_renderer_on_circle_player"
+ app:srcCompat="@drawable/ic_renderer_circle_player"
tools:visibility="visible" />
<ImageView
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index f1f366370..f84d8f082 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -2197,7 +2197,7 @@ open class VideoPlayerActivity : AppCompatActivity(), IPlaybackSettingsControlle
if (!AndroidDevices.isChromeBook && !isTv
&& Settings.getInstance(this).getBoolean("enable_casting", true)) {
rendererBtn = findViewById(R.id.video_renderer)
- PlaybackService.renderer.observe(this, Observer { rendererItem -> rendererBtn?.setImageDrawable(AppCompatResources.getDrawable(this, if (rendererItem == null) R.drawable.ic_renderer_circle_player else R.drawable.ic_renderer_circle_player)) })
+ PlaybackService.renderer.observe(this, Observer { rendererItem -> rendererBtn?.setImageDrawable(AppCompatResources.getDrawable(this, if (rendererItem == null) R.drawable.ic_renderer_circle_player else R.drawable.ic_renderer_on_circle_player)) })
RendererDelegate.renderers.observe(this, Observer<List<RendererItem>> { rendererItems -> rendererBtn.setVisibility(if (Util.isListEmpty(rendererItems)) View.GONE else View.VISIBLE) })
}
More information about the Android
mailing list