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

Commit 399c2a51 authored by Roshan Pius's avatar Roshan Pius Committed by Automerger Merge Worker
Browse files

Merge "nfc(api): Add user id in setServiceEnabledForCategoryOther" into main am: 43420b33

parents f2bd716f 43420b33
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -970,16 +970,16 @@ public final class CardEmulation {
     *
     * @param service The ComponentName of the service
     * @param status  true to enable, false to disable
     * @param userId the user handle of the user whose information is being requested.
     * @return set service for the category and true if service is already set return false.
     *
     * @hide
     */
    public boolean setServiceEnabledForCategoryOther(ComponentName service, boolean status) {
    public boolean setServiceEnabledForCategoryOther(ComponentName service, boolean status,
                                                     int userId) {
        if (service == null) {
            throw new NullPointerException("activity or service or category is null");
        }
        int userId = mContext.getUser().getIdentifier();

        try {
            return sService.setServiceEnabledForCategoryOther(userId, service, status);
        } catch (RemoteException e) {