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

Commit 2e1f02df authored by Mohamed Abdalkader's avatar Mohamed Abdalkader Committed by android-build-merger
Browse files

Add and trigger onReady API for SMS over IMS

am: 4d59b1bd

Change-Id: I56d801b1742cfcf1a2c2f781aa35028f0b6b926b
parents f62e1b1f 4d59b1bd
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2448,6 +2448,15 @@ public class ImsManager {
        }
    }

    public void onSmsReady() throws ImsException{
        try {
            mImsServiceProxy.onSmsReady();
        } catch (RemoteException e) {
            throw new ImsException("onSmsReady()", e,
                    ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN);
        }
    }

    public void addRegistrationCallback(ImsRegistrationImplBase.Callback callback) {
        // TODO: implement (coming in ag/3472519)
    }
+7 −0
Original line number Diff line number Diff line
@@ -371,6 +371,13 @@ public class ImsServiceProxy {
        }
    }

    public void onSmsReady() throws RemoteException {
        synchronized (mLock) {
            checkServiceIsReady();
            getServiceInterface(mBinder).onSmsReady();
        }
    }

    public void setSmsListener(IImsSmsListener listener) throws RemoteException {
        synchronized (mLock) {
            checkServiceIsReady();