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

Commit 3a997ab3 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

am: f099a95a

* commit 'f099a95a':
  JobScheduler: handle connectivity action in bg looper
parents 93fc53dc f099a95a
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;
@@ -72,7 +73,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);
        mConnectivityManager = (ConnectivityManager)