OSDN Git Service

Initialize mRetyMgr when constructing GsmDataConnectionTracker.
authorWink Saville <wink@google.com>
Wed, 2 Mar 2011 05:09:22 +0000 (21:09 -0800)
committerWink Saville <wink@google.com>
Wed, 2 Mar 2011 05:09:22 +0000 (21:09 -0800)
bug: 3501596
Change-Id: I7bcc5cf317519dae3e5c0106f32fcb4481b2aa90

telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java

index cd0d9e3..3f9f718 100644 (file)
@@ -159,7 +159,10 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
                 Telephony.Carriers.CONTENT_URI, true, mApnObserver);
 
         /** Create the default connection */
-        createDataConnection(Phone.APN_TYPE_DEFAULT);
+        int id = createDataConnection(Phone.APN_TYPE_DEFAULT);
+        mRetryMgr = mDataConnections.get(id).getRetryMgr();
+        mRetryMgr.resetRetryCount();
+
         broadcastMessenger();
     }