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

Commit e041ee0d authored by Adnan Begovic's avatar Adnan Begovic
Browse files

telephony: Complete interfaces for sms prompt.

Ticket: CYNGNOS-1440
Change-Id: I0ac988e1a5d26ecf070a0a72b865c5c4e6fe0c67
parent 4810ebf2
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -1245,6 +1245,22 @@ public final class SmsManager {
        }
    }

    /**
     * Set SMS prompt property, enabled or not
     * @hide
     */
    public void setSMSPromptEnabled(boolean bool) {
        ISms iccISms = null;
        try {
            iccISms = ISms.Stub.asInterface(ServiceManager.getService("isms"));
            iccISms.setSMSPromptEnabled(bool);
        } catch (RemoteException ex) {
            //ignore it
        } catch (NullPointerException ex) {
            //ignore it
        }
    }

    /**
     * Get the capacity count of sms on Icc card
     *
+7 −0
Original line number Diff line number Diff line
@@ -391,6 +391,13 @@ public class UiccSmsController extends ISms.Stub {
        return PhoneFactory.isSMSPromptEnabled();
    }

    /**
     * Set SMS prompt property, enabled ornot
     **/
    public void setSMSPromptEnabled(boolean bool) {
        PhoneFactory.setSMSPromptEnabled(bool);
    }

    @Override
    public void sendStoredText(int subId, String callingPkg, Uri messageUri, String scAddress,
            PendingIntent sentIntent, PendingIntent deliveryIntent) throws RemoteException {