Skip to content

Commit

Permalink
Fixed deprecated permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom committed Nov 6, 2019
1 parent 9dfed04 commit 9dd0f7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private static int parseManifestName(String permission) {
case Manifest.permission.WRITE_CALL_LOG:
case Manifest.permission.ADD_VOICEMAIL:
case Manifest.permission.USE_SIP:
case Manifest.permission.PROCESS_OUTGOING_CALLS:
case Manifest.permission.BIND_CALL_REDIRECTION_SERVICE:
return PERMISSION_GROUP_PHONE;
case Manifest.permission.BODY_SENSORS:
return PERMISSION_GROUP_SENSORS;
Expand Down Expand Up @@ -620,8 +620,9 @@ private List<String> getManifestNames(@PermissionGroup int permission) {
if (hasPermissionInManifest(Manifest.permission.USE_SIP))
permissionNames.add(Manifest.permission.USE_SIP);

if (hasPermissionInManifest(Manifest.permission.PROCESS_OUTGOING_CALLS))
permissionNames.add(Manifest.permission.PROCESS_OUTGOING_CALLS);
if (hasPermissionInManifest(Manifest.permission.BIND_CALL_REDIRECTION_SERVICE))
permissionNames.add(Manifest.permission.BIND_CALL_REDIRECTION_SERVICE);

break;

case PERMISSION_GROUP_SENSORS:
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<uses-permission android:name="android.permission.USE_SIP"/>
<uses-permission android:name="android.permission.READ_CALL_LOG"/>
<uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS"/>
<uses-permission android:name="android.permission.BIND_CALL_REDIRECTION_SERVICE"/>

<!-- Permissions options for the `calendar` group -->
<uses-permission android:name="android.permission.READ_CALENDAR" />
Expand Down

0 comments on commit 9dd0f7b

Please sign in to comment.