Skip to content

Commit d7ea6eb

Browse files
committed
Fixed 'Activity doesn't exist' bug
1 parent e207d9d commit d7ea6eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void endAllCalls() {
214214

215215
@ReactMethod
216216
public void checkPhoneAccountPermission(ReadableArray optionalPermissions, Promise promise) {
217-
Activity currentActivity = this.getCurrentActivity();
217+
Activity currentActivity = getCurrentActivity();
218218

219219
if (!isConnectionServiceAvailable()) {
220220
promise.reject(E_ACTIVITY_DOES_NOT_EXIST, "ConnectionService not available for this version of Android.");
@@ -464,7 +464,7 @@ private String getApplicationName(Context appContext) {
464464
}
465465

466466
private Boolean hasPermissions() {
467-
Activity currentActivity = this.getCurrentActivity();
467+
Activity currentActivity = getCurrentActivity();
468468

469469
boolean hasPermissions = true;
470470
for (String permission : permissions) {

0 commit comments

Comments
 (0)