Skip to content

Commit c825647

Browse files
author
Quoc Khanh
committed
fix dismiss func
1 parent bceeeaf commit c825647

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
public class UnlockScreenActivity extends AppCompatActivity implements UnlockScreenActivityInterface {
3232

3333
private static final String TAG = "MessagingService";
34-
public static Activity fa;
3534
private TextView tvName;
3635
private TextView tvInfo;
3736
private ImageView ivAvatar;
@@ -63,8 +62,6 @@ protected void onCreate(Bundle savedInstanceState) {
6362
tvInfo = findViewById(R.id.tvInfo);
6463
ivAvatar = findViewById(R.id.ivAvatar);
6564

66-
fa = this;
67-
6865
Bundle bundle = getIntent().getExtras();
6966
if (bundle != null) {
7067
if (bundle.containsKey("uuid")) {
@@ -129,7 +126,7 @@ public void onBackPressed() {
129126
public static void dismissIncoming() {
130127
v.cancel();
131128
player.stop();
132-
this.finish();
129+
finish();
133130
}
134131

135132
private void acceptDialing() {

example/yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5442,8 +5442,8 @@ react-native-bootsplash@^2.2.4:
54425442
resolved "git://github.com/jpudysz/react-native-callkeep#31118a0c90ca5d58824b33ed9ddb80b63e930ea7"
54435443

54445444
"react-native-incoming-call@git+https://github.com/bkdev98/react-native-incoming-call.git":
5445-
version "2.0.0"
5446-
resolved "git+https://github.com/bkdev98/react-native-incoming-call.git#e550f7a6d80fe15073868ee873fb9b0761be54d2"
5445+
version "2.0.1"
5446+
resolved "git+https://github.com/bkdev98/react-native-incoming-call.git#bceeeaf6773b9ef70bc67824e166770a162cd297"
54475447

54485448
54495449
version "0.62.2"

0 commit comments

Comments
 (0)