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

Commit 489658b1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "IMS: Add API to get IMS Registration Status based on subId"

parents 4929fedc 4dabbbe7
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -4786,6 +4786,24 @@ public class TelephonyManager {
       }
   }

   /**
    * Returns the IMS Registration Status
    * using subId
    * @hide
    */
   public boolean isImsRegisteredForSubscriber(int subId) {
       try {
           ITelephony telephony = getITelephony();
           if (telephony == null)
               return false;
           return telephony.isImsRegisteredForSubscriber(subId);
       } catch (RemoteException ex) {
           return false;
       } catch (NullPointerException ex) {
           return false;
       }
   }

    /**
     * Returns the Status of Volte
     * @hide
+5 −0
Original line number Diff line number Diff line
@@ -977,6 +977,11 @@ interface ITelephony {
     */
    boolean isImsRegistered();

    /**
     * Get IMS Registration Status using subId
     */
    boolean isImsRegisteredForSubscriber(int subId);

    /**
     * Returns the Status of Wi-Fi Calling
     */