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

Commit bdddbdf1 authored by Chris Tate's avatar Chris Tate Committed by Gerrit Code Review
Browse files

Merge "JobScheduler: handle connectivity action in bg looper"

parents ca430a88 b49420a7
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;
@@ -70,7 +71,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) {