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

Commit 018bf7a7 authored by Nancy Chen's avatar Nancy Chen Committed by Natiq Ahmed
Browse files

Use TelecomManager to call TelephonyManager#getVoicemailNumber (2/2)

Since we don't want the phone app to call TelephonyManager methods
directly, create a method in TelecomManager to mimic the behavior. The
reason we don't return the voicemail number directly is because once
TelecomManager becomes public, we don't want any old app to be able to
get the SIM's voicemail number.

Bug: 18233678
Conflicts:
	src/com/android/server/telecom/TelecomServiceImpl.java

Change-Id: I7eb9a60ab65aababeef7da7bce3b035dcaa1ad1d
parent 38612b31
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -469,7 +469,7 @@ public class TelecomService extends Service {
        /**
         * @see android.telecom.TelecomManager#hasVoiceMailNumber
         */
        /* @Override
        @Override
        public boolean hasVoiceMailNumber(PhoneAccountHandle accountHandle) {
            enforceReadPermissionOrDefaultDialer();
            try {
@@ -487,7 +487,7 @@ public class TelecomService extends Service {
                Log.e(this, e, "getSubscriptionIdForPhoneAccount");
                throw e;
            }
        }*/
        }

        /**
         * @see android.telecom.TelecomManager#silenceRinger