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 ce7b401 + 3dff8c8 commit 0625b08Copy full SHA for 0625b08
android/src/main/java/com/incomingcall/UnlockScreenActivity.java
@@ -44,7 +44,7 @@ public class UnlockScreenActivity extends AppCompatActivity implements UnlockScr
44
static boolean active = false;
45
private static Vibrator v = (Vibrator) IncomingCallModule.reactContext.getSystemService(Context.VIBRATOR_SERVICE);
46
private long[] pattern = {0, 1000, 800};
47
- 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);
48
private static Activity fa;
49
private Timer timer;
50
0 commit comments