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 3bff250 + 35d6e7f commit 09b533aCopy full SHA for 09b533a
android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java
@@ -982,9 +982,10 @@ private Boolean hasPermissions() {
982
return hasPermissions;
983
}
984
985
- private static boolean hasPhoneAccount() {
986
- return isConnectionServiceAvailable() && telecomManager != null
987
- && telecomManager.getPhoneAccount(handle) != null && telecomManager.getPhoneAccount(handle).isEnabled();
+ private boolean hasPhoneAccount() {
+ return isConnectionServiceAvailable() && telecomManager != null &&
+ hasPermissions() && telecomManager.getPhoneAccount(handle) != null &&
988
+ telecomManager.getPhoneAccount(handle).isEnabled();
989
990
991
private void registerReceiver() {
0 commit comments