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

Commit 6005ed07 authored by Rambo Wang's avatar Rambo Wang Committed by Android (Google) Code Review
Browse files

Merge "User current user context for CarrierServiceBindHelper" into main

parents b563e66a c083817e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.internal.telephony;

import android.annotation.NonNull;
import android.app.ActivityManager;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
@@ -161,7 +162,11 @@ public class CarrierServiceBindHelper {
    };

    public CarrierServiceBindHelper(Context context) {
        mContext = context.createContextAsUser(Process.myUserHandle(), 0);
        mContext =
                context.createContextAsUser(
                        Flags.supportCarrierServicesForHsum()
                        ? UserHandle.of(ActivityManager.getCurrentUser())
                        : Process.myUserHandle(), 0);

        updateBindingsAndSimStates();