Fix enabling of FailFast mechanism.
Robert Greenwalt [Fri, 10 Oct 2014 04:38:55 +0000 (21:38 -0700)]
If you use the wrong obtainMessage it's cast into an Integer
and stored in obj instead of arg1.  This causes us to retry onto
the provisioning apn in 3 seconds instead of 20 and speeds up
the process.

bug:15990642
Change-Id: I3deb32d49c9fa77b16af9daf5c6ffb682363f6d1

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

index 93f13c8..f06c84d 100644 (file)
@@ -405,7 +405,7 @@ public final class DcTracker extends DcTrackerBase {
         }
 
         private void setEnableFailFastMobileData(int enabled) {
-            sendMessage(obtainMessage(DctConstants.CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA, enabled));
+            sendMessage(obtainMessage(DctConstants.CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA, enabled, 0));
         }
 
         private void enableMobileProvisioning() {