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

Commit e235c55b authored by Charles Wang's avatar Charles Wang Committed by Android (Google) Code Review
Browse files

Merge "Change QAWClient to call bindServiceAsUser." into main

parents 384f60b4 a675469c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -421,7 +421,12 @@ public class QuickAccessWalletClientImpl implements QuickAccessWalletClient, Ser
        Intent intent = new Intent(SERVICE_INTERFACE);
        intent.setComponent(serviceInfo.getComponentName());
        int flags = Context.BIND_AUTO_CREATE | Context.BIND_WAIVE_PRIORITY;
        if (mServiceInfo == null) {
            mLifecycleExecutor.execute(() -> mContext.bindService(intent, this, flags));
        } else {
            mLifecycleExecutor.execute(() -> mContext.bindServiceAsUser(intent, this, flags,
                    UserHandle.of(mServiceInfo.getUserId())));
        }
        resetServiceConnectionTimeout();
    }