Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c304cf84 authored by Tyler Gunn's avatar Tyler Gunn Committed by Android (Google) Code Review
Browse files

Merge "Add prototype of canCallPhone with no feature ID."

parents 05f81b72 689eeb8e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2073,6 +2073,10 @@ public class TelecomServiceImpl {
        return false;
    }

    private boolean canCallPhone(String callingPackage, String message) {
        return canCallPhone(callingPackage, null /* featureId */, message);
    }

    private boolean canCallPhone(String callingPackage, String callingFeatureId, String message) {
        // The system/default dialer can always read phone state - so that emergency calls will
        // still work.