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

Commit b1480c8c 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

Change-Id: If6ad081e117a94df84d041776649af63c392cc30
parents 8b5389f7 c6e3467c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -93,8 +93,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();
                }
            }
        }
    }