We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09a2857 + 2b1e615 commit 793a436Copy full SHA for 793a436
android/src/main/java/com/incomingcall/UnlockScreenActivity.java
@@ -38,7 +38,7 @@ public class UnlockScreenActivity extends AppCompatActivity implements UnlockScr
38
static boolean active = false;
39
private static Vibrator v = (Vibrator) IncomingCallModule.reactContext.getSystemService(Context.VIBRATOR_SERVICE);
40
private long[] pattern = {0, 1000, 800};
41
- private static MediaPlayer player = MediaPlayer.create(IncomingCallModule.reactContext, Settings.System.DEFAULT_RINGTONE_URI);
+ private static MediaPlayer player = MediaPlayer.create(IncomingCallModule.reactContext.getApplicationContext(), Settings.System.DEFAULT_RINGTONE_URI);
42
private static Activity fa;
43
44
@Override
0 commit comments