Open any media so that controls with the play button is visible
Expected result
No logged exception
Actual result
Every time each overriden control is shown, following exception is logged:
Drawable androidx.media3.demo.main:drawable/exo_styled_controls_play has unresolved theme attributes! Consider using Resources.getDrawable(int, Theme) or Context.getDrawable(int).
java.lang.RuntimeException
at android.content.res.Resources.getDrawable(Resources.java:967)
at androidx.media3.ui.PlayerControlView.updatePlayPauseButton(PlayerControlView.java:965)
at androidx.media3.ui.PlayerControlView.access$300(PlayerControlView.java:181)
at androidx.media3.ui.PlayerControlView$ComponentListener.onEvents(PlayerControlView.java:1583)
at androidx.media3.exoplayer.ExoPlayerImpl.lambda$new$0$androidx-media3-exoplayer-ExoPlayerImpl(ExoPlayerImpl.java:276)
at androidx.media3.exoplayer.ExoPlayerImpl$$ExternalSyntheticLambda18.invoke(Unknown Source:4)
at androidx.media3.common.util.ListenerSet$ListenerHolder.iterationFinished(ListenerSet.java:295)
at androidx.media3.common.util.ListenerSet.handleMessage(ListenerSet.java:246)
at androidx.media3.common.util.ListenerSet.$r8$lambda$bio3pd12v5B_9b5UeFaPn9XBQ90(Unknown Source:0)
at androidx.media3.common.util.ListenerSet$$ExternalSyntheticLambda0.handleMessage(Unknown Source:2)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8741)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Media
Not applicable
Bug Report
[ ] You will email the zip file produced by adb bugreport to dev.exoplayer@gmail.com after filing this issue.
Media3 Version
1.0.0-beta03
Devices that reproduce the issue
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
drawable
resources to the demo app:ic_outline_play_arrow_24.xml
:controls_gradient.xml
:exo_styled_controls_play.xml
:Expected result
No logged exception
Actual result
Every time each overriden control is shown, following exception is logged:
Media
Not applicable
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.