package com.marverenic.music.player;

import com.google.android.exoplayer2.ExoPlayer;

public enum ExoPlayerState {

    IDLE, BUFFERING, READY, ENDED;

    public static ExoPlayerState fromInt(int exoPlayerState) {
        switch (exoPlayerState) {
            case ExoPlayer.STATE_IDLE:
                return IDLE;
            case ExoPlayer.STATE_BUFFERING:
                return BUFFERING;
            case ExoPlayer.STATE_READY:
                return READY;
            case ExoPlayer.STATE_ENDED:
                return ENDED;
            default:
                throw new IllegalArgumentException(exoPlayerState + " is not a valid state");
        }
    }

}

@@ -68,19 +68,16 @@
 player2.
-Exo
 Player;%0A
@@ -249,35 +249,32 @@
            case 
-Exo
 Player.STATE_IDL
@@ -314,35 +314,32 @@
            case 
-Exo
 Player.STATE_BUF
@@ -389,35 +389,32 @@
            case 
-Exo
 Player.STATE_REA
@@ -464,19 +464,16 @@
    case 
-Exo
 Player.S

Update deprecated constants usage