package me.dielsonsales.app.openpomodoro.controllers;

import android.content.Context;
import android.media.MediaPlayer;

import me.dielsonsales.app.openpomodoro.R;

public class PomodoroSoundManager {
    private static final String TAG = "PomodoroSoundManager";

    private MediaPlayer mPlayer;
    private Context mContext;
    private static PomodoroSoundManager mInstance;

    public static PomodoroSoundManager getInstance(Context context) {
        if (mInstance == null) {
            mInstance = new PomodoroSoundManager(context);
        }
        return mInstance;
    }

    private PomodoroSoundManager() {}

    private PomodoroSoundManager(Context context) {
        mContext = context;
        mPlayer = MediaPlayer.create(mContext, R.raw.alarm);
    }

    public void playAlarm() {
        if (mPlayer.isPlaying()) {
            mPlayer.pause();
            mPlayer.seekTo(0);
        }
        mPlayer.start();
    }
}

@@ -113,16 +113,41 @@
 aPlayer;
+%0Aimport android.util.Log;
 %0A%0Aimport
@@ -320,38 +320,8 @@
 er;%0A
-    private Context mContext;%0A
     
@@ -668,36 +668,8 @@
 ) %7B%0A
-        mContext = context;%0A
     
@@ -705,10 +705,9 @@
 ate(
-mC
+c
 onte
@@ -856,16 +856,16 @@
 kTo(0);%0A
-
         
@@ -858,32 +858,80 @@
 o(0);%0A        %7D%0A
+        Log.i(%22SoundManager%22, %22Playing sound%22);%0A
         mPlayer.

Change context to local variable in PomodoroSoundManager