Skip to content

Commit

Permalink
Analysis: Resolve on loading changed deprecation warn on media preview
Browse files Browse the repository at this point in the history
Warning Message: "Overrides deprecated method in
'com.google.android.exoplayer2.Player.Listener'"

Explanation: "Use onIsLoadingChanged(boolean) instead."

For more info see:
- exoplayer2.Player.Listener#onIsLoadingChanged (Doc):
https://exoplayer.dev/doc/reference/com/google/android/exoplayer2/
Player.Listener.html#onIsLoadingChanged(boolean)
  • Loading branch information
ParaskP7 committed Feb 9, 2023
1 parent 8059cb6 commit 0c4502b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ boolean showAudioOrVideo() {
}

private class PlayerEventListener implements Player.Listener {
@Override public void onLoadingChanged(boolean isLoading) {
@Override
public void onIsLoadingChanged(boolean isLoading) {
showProgress(isLoading);
}
}
Expand Down

0 comments on commit 0c4502b

Please sign in to comment.