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

Commit f099a95a authored by wangshujie's avatar wangshujie Committed by android-build-merger
Browse files

Merge "JobScheduler: handle connectivity action in bg looper" am: bdddbdf1

am: 4d60e940

* commit '4d60e940':
  JobScheduler: handle connectivity action in bg looper
parents 9d9899d2 4d60e940
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.os.ServiceManager;
import android.os.UserHandle;
import android.util.Slog;

import com.android.internal.os.BackgroundThread;
import com.android.server.ConnectivityService;
import com.android.server.job.JobSchedulerService;
import com.android.server.job.StateChangedListener;
@@ -71,7 +72,8 @@ public class ConnectivityController extends StateController implements
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
        mContext.registerReceiverAsUser(
                mConnectivityChangedReceiver, UserHandle.ALL, intentFilter, null, null);
                mConnectivityChangedReceiver, UserHandle.ALL, intentFilter, null,
                BackgroundThread.getHandler());
        ConnectivityService cs =
                (ConnectivityService)ServiceManager.getService(Context.CONNECTIVITY_SERVICE);
        if (cs != null) {