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

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

Change-Id: Ie0dcb238e132705022408e2f0cacd35597ff86f1
parents f8aaf9ec 2ed42d00
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();
                }
            }
        }
    }