Skip to content

Failing to remove callback when user disconnects from WiFi #39

Description

@ReyhanJB

What steps will reproduce the problem?
In the setting, enable wifi only mode. Create a playlist with several musics. Start the playlist. When the first song is playing, disable WiFi.

What is the expected output? What do you see instead?
Jamendo keeps running in the background (It does not play any song, but keeps running in background) and does not remove the callback that is responsible to track the music play progress.

Please provide any additional information below
In the "PlayerEngineImpl.java" class, "mHandler" is responsible to run "mUpdateTimeTask" periodically (every one second). It seems that mHandler will be remove when the player is not playing. However, it seems that disconnecting from internet does not impact the playing status of the playlist. To ensure the callback is still executed in background, I added a log file in the method "run()" of "mUpdateTimeTask". After reproducing the issue, I can see that the log appears in the logcat every second.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions