Skip to content

Commit 0625b08

Browse files
committed
Merge branch 'master' of github.com-icc:icc-guerrero/react-native-incoming-call
2 parents ce7b401 + 3dff8c8 commit 0625b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/incomingcall/UnlockScreenActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class UnlockScreenActivity extends AppCompatActivity implements UnlockScr
4444
static boolean active = false;
4545
private static Vibrator v = (Vibrator) IncomingCallModule.reactContext.getSystemService(Context.VIBRATOR_SERVICE);
4646
private long[] pattern = {0, 1000, 800};
47-
private static MediaPlayer player = MediaPlayer.create(IncomingCallModule.reactContext, Settings.System.DEFAULT_RINGTONE_URI);
47+
private static MediaPlayer player = MediaPlayer.create(IncomingCallModule.reactContext.getApplicationContext(), Settings.System.DEFAULT_RINGTONE_URI);
4848
private static Activity fa;
4949
private Timer timer;
5050

0 commit comments

Comments
 (0)