Notify all ApnContexts on a conn of Disconnect
Robert Greenwalt [Tue, 12 Nov 2013 18:17:53 +0000 (10:17 -0800)]
Without this you can end up with default thinking
it's connected when it's actually not.

bug:10212445
Change-Id: Iffe3bf2064ac6c9f8e68ddb0d2b5115deaac2033

src/java/com/android/internal/telephony/dataconnection/DataConnection.java

index 517cb92..9cfed88 100644 (file)
@@ -1197,7 +1197,6 @@ public final class DataConnection extends StateMachine {
                                 + "RefCount=" + mApnContexts.size());
                     }
                     mInactiveState.setEnterNotificationParams(DcFailCause.LOST_CONNECTION);
-                    deferMessage(msg);
                     transitionTo(mInactiveState);
                     retVal = HANDLED;
                     break;
@@ -1474,7 +1473,6 @@ public final class DataConnection extends StateMachine {
                         log("DcActiveState EVENT_DISCONNECT clearing apn contexts,"
                                 + " dc=" + DataConnection.this);
                     }
-                    mApnContexts.clear();
                     DisconnectParams dp = (DisconnectParams) msg.obj;
                     mDisconnectParams = dp;
                     mConnectionParams = null;