Simplify an if expression

This commit is contained in:
Raphaël Jakse 2020-01-16 20:46:52 +01:00
parent ef90493c27
commit 7dbb2b206c
1 changed files with 3 additions and 3 deletions

View File

@ -946,10 +946,10 @@ public abstract class BasePlayer implements
public void onPlayPause() {
if (DEBUG) Log.d(TAG, "onPlayPause() called");
if (!isPlaying()) {
onPlay();
} else {
if (isPlaying()) {
onPause();
} else {
onPlay();
}
}