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

Commit 6022dec8 authored by Jack Yu's avatar Jack Yu
Browse files

Removed unnecessary data connection failed broadcasts

Only broadcast DATA_CONNECTION_FAILED when it's really failed.
We should not send this broadcast when pre-condition is not
met (e.g. user disabled data)

Test: Manual
Bug: 79122846
Change-Id: I995c4bc23dcc41e173c723b8128e5e5c68f0525c
parent bf673d01
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1487,11 +1487,6 @@ public class DcTracker extends Handler {
            if (DBG) log("trySetupData: X retValue=" + retValue);
            return retValue;
        } else {
            if (!apnContext.getApnType().equals(PhoneConstants.APN_TYPE_DEFAULT)
                    && apnContext.isConnectable()) {
                mPhone.notifyDataConnectionFailed(apnContext.getApnType());
            }

            StringBuilder str = new StringBuilder();

            str.append("trySetupData failed. apnContext = [type=" + apnContext.getApnType()