Skip to content

Commit

Permalink
Resetting media player every time. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevalpatel2106 committed Jul 4, 2017
1 parent 71071a7 commit ce130a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ void playRingtone(@NonNull Uri uri) throws IOException,

if (mMediaPlayer.isPlaying()) {
mMediaPlayer.stop();
mMediaPlayer.reset();
}
mMediaPlayer.reset();

mMediaPlayer.setDataSource(mContext, uri);
mMediaPlayer.prepare();
Expand Down

0 comments on commit ce130a9

Please sign in to comment.