mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
casting: set cast button to inactive color when device is disconnected
This commit is contained in:
@@ -41,7 +41,7 @@ class CastButton : androidx.appcompat.widget.AppCompatImageButton {
|
||||
when (d.connectionState) {
|
||||
CastConnectionState.CONNECTED -> setColorFilter(activeColor)
|
||||
CastConnectionState.CONNECTING -> setColorFilter(connectingColor)
|
||||
CastConnectionState.DISCONNECTED -> setColorFilter(activeColor)
|
||||
CastConnectionState.DISCONNECTED -> setColorFilter(inactiveColor)
|
||||
}
|
||||
} else {
|
||||
setColorFilter(inactiveColor);
|
||||
|
||||
Reference in New Issue
Block a user