Simplify an if expression
This commit is contained in:
parent
ef90493c27
commit
7dbb2b206c
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue