Skip to content

Commit 047223e

Browse files
author
Quoc Khanh
committed
fix dismiss func
1 parent 1b254f5 commit 047223e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public class UnlockScreenActivity extends AppCompatActivity implements UnlockScr
3636
private ImageView ivAvatar;
3737
private String uuid = "";
3838
static boolean active = false;
39-
private Vibrator v = (Vibrator) IncomingCallModule.reactContext.getSystemService(Context.VIBRATOR_SERVICE);
39+
private static Vibrator v = (Vibrator) IncomingCallModule.reactContext.getSystemService(Context.VIBRATOR_SERVICE);
4040
private long[] pattern = {0, 1000, 800};
41-
private MediaPlayer player = MediaPlayer.create(IncomingCallModule.reactContext, Settings.System.DEFAULT_RINGTONE_URI);
41+
private static MediaPlayer player = MediaPlayer.create(IncomingCallModule.reactContext, Settings.System.DEFAULT_RINGTONE_URI);
4242
private static Activity fa;
4343

4444
@Override

example/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5443,7 +5443,7 @@ react-native-bootsplash@^2.2.4:
54435443

54445444
"react-native-incoming-call@git+https://github.com/bkdev98/react-native-incoming-call.git":
54455445
version "2.0.1"
5446-
resolved "git+https://github.com/bkdev98/react-native-incoming-call.git#84a014adb3b4354caa43ab493ba5baf5732ff03a"
5446+
resolved "git+https://github.com/bkdev98/react-native-incoming-call.git#1b254f5908290e8d55e495086accb9543195f63e"
54475447

54485448
react-native@0.62.2:
54495449
version "0.62.2"

0 commit comments

Comments
 (0)