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

Commit d0cb54b2 authored by Miao Miao (苗苗)'s avatar Miao Miao (苗苗) Committed by android-build-merger
Browse files

Merge "Settings crash when receiving data state broadcast" am: 2ed42d00 am: c6e3467c

am: b1480c8c

Change-Id: I803440c63bfb4a4355765b2dc670e2ca54f7c9e1
parents 19323ca2 b1480c8c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -105,8 +105,11 @@ public class CellularDataCondition extends Condition {
        public void onReceive(Context context, Intent intent) {
            if (TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED.equals(
                    intent.getAction())) {
                ConditionManager.get(context).getCondition(CellularDataCondition.class)
                        .refreshState();
                CellularDataCondition condition = ConditionManager.get(context).getCondition(
                        CellularDataCondition.class);
                if (condition != null) {
                    condition.refreshState();
                }
            }
        }
    }