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() {
|
public void onPlayPause() {
|
||||||
if (DEBUG) Log.d(TAG, "onPlayPause() called");
|
if (DEBUG) Log.d(TAG, "onPlayPause() called");
|
||||||
|
|
||||||
if (!isPlaying()) {
|
if (isPlaying()) {
|
||||||
onPlay();
|
|
||||||
} else {
|
|
||||||
onPause();
|
onPause();
|
||||||
|
} else {
|
||||||
|
onPlay();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue