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

Commit bb7ba084 authored by gang.huang's avatar gang.huang Committed by gang huang
Browse files

Ignore null action in DeviceIdleController.

Bug: 376164967
Test: Manual.
Change-Id: I5c0c61fd592cffaab0ab2ec1885c379b349670d3
parent a022a844
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -666,7 +666,12 @@ public class DeviceIdleController extends SystemService

    private final BroadcastReceiver mReceiver = new BroadcastReceiver() {
        @Override public void onReceive(Context context, Intent intent) {
            switch (intent.getAction()) {
            final String action = intent.getAction();
            if (action == null) {
                return;
            }

            switch (action) {
                case ConnectivityManager.CONNECTIVITY_ACTION: {
                    updateConnectivityState(intent);
                } break;