forked from len0rd/rockbox
Clean up usage of RockboxService. Add a proper way to check if rockbox is actually running (checking RockboxService.fb != null was very very bad)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28406 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
78b2711e58
commit
26f7ee13ce
4 changed files with 71 additions and 32 deletions
|
@ -86,7 +86,7 @@ public class RockboxPCM extends AudioTrack
|
|||
{
|
||||
if (getPlayState() == AudioTrack.PLAYSTATE_STOPPED)
|
||||
{
|
||||
RockboxService.startForeground();
|
||||
RockboxService.get_instance().startForeground();
|
||||
if (getState() == AudioTrack.STATE_INITIALIZED)
|
||||
{
|
||||
if (h == null)
|
||||
|
@ -113,7 +113,7 @@ public class RockboxPCM extends AudioTrack
|
|||
} catch (IllegalStateException e) {
|
||||
throw new IllegalStateException(e);
|
||||
}
|
||||
RockboxService.stopForeground();
|
||||
RockboxService.get_instance().stopForeground();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue