Skip to content

Commit

Permalink
Fix #80
Browse files Browse the repository at this point in the history
  • Loading branch information
fexed committed Sep 4, 2023
1 parent 0aa0862 commit 2e7e1e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ protected void onCreate(Bundle savedInstanceState) {
if (isPlaying) {
isPlaying = false;
pauseNativeThread();
if (player != null) player.pause();
if (PrefsHelper.getMusic()) player.pause();
mBinding.playpause.setImageDrawable(getContext().getResources().getDrawable(R.drawable.play));
} else {
isPlaying = true;
resumeNativeThread();
if (player != null) player.start();
if (PrefsHelper.getMusic()) player.start();
mBinding.playpause.setImageDrawable(getContext().getResources().getDrawable(R.drawable.pause));

}
Expand Down

0 comments on commit 2e7e1e8

Please sign in to comment.