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

Commit aca6eb7d authored by sqian's avatar sqian
Browse files

Fix Emergency Number API doc

1) remove documentation about null return
2) Map including the key*s* as the active subscription ID*s*

Bug: 130426238
Test: Treehugger
Change-Id: I4c9b682ef25378b9de91cd6255ed6fc514ea220d
parent 53da1df9
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -10376,10 +10376,10 @@ public class TelephonyManager {
     * <p>Requires permission {@link android.Manifest.permission#READ_PHONE_STATE} or the calling
     * app has carrier privileges (see {@link #hasCarrierPrivileges}).
     *
     * @return Map including the key as the active subscription ID (Note: if there is no active
     * @return Map including the keys as the active subscription IDs (Note: if there is no active
     * subscription, the key is {@link SubscriptionManager#getDefaultSubscriptionId}) and the value
     * as the list of {@link EmergencyNumber}; null if this information is not available; or throw
     * a SecurityException if the caller does not have the permission.
     * as the list of {@link EmergencyNumber}; empty Map if this information is not available;
     * or throw a SecurityException if the caller does not have the permission.
     */
    @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
    @NonNull
@@ -10429,10 +10429,10 @@ public class TelephonyManager {
     * <li>{@link EmergencyNumber#EMERGENCY_SERVICE_CATEGORY_MIEC} </li>
     * <li>{@link EmergencyNumber#EMERGENCY_SERVICE_CATEGORY_AIEC} </li>
     * </ol>
     * @return Map including the key as the active subscription ID (Note: if there is no active
     * @return Map including the keys as the active subscription IDs (Note: if there is no active
     * subscription, the key is {@link SubscriptionManager#getDefaultSubscriptionId}) and the value
     * as the list of {@link EmergencyNumber}; null if this information is not available; or throw
     * a SecurityException if the caller does not have the permission.
     * as the list of {@link EmergencyNumber}; empty Map if this information is not available;
     * or throw a SecurityException if the caller does not have the permission.
     */
    @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
    @NonNull