Changeset 12565 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2017-08-03T23:51:18+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/audio/AudioPlayer.java
r12328 r12565 168 168 public static boolean paused() { 169 169 AudioPlayer instance = AudioPlayer.getInstance(); 170 return instance == null ? false : (instance.state == State.PAUSED);170 return instance != null && instance.state == State.PAUSED; 171 171 } 172 172 … … 177 177 public static boolean playing() { 178 178 AudioPlayer instance = AudioPlayer.getInstance(); 179 return instance == null ? false : (instance.state == State.PLAYING);179 return instance != null && instance.state == State.PLAYING; 180 180 } 181 181
Note:
See TracChangeset
for help on using the changeset viewer.