Move to new NetworkPolicyManager accessor.
Jeff Sharkey [Thu, 5 Apr 2012 23:40:23 +0000 (16:40 -0700)]
Change-Id: I21e5f6280748529bad881942f8f5534aa374ba55

src/com/android/providers/downloads/DownloadThread.java

index 1d2aceb..d8ea68d 100644 (file)
@@ -137,7 +137,7 @@ public class DownloadThread extends Thread {
         int finalStatus = Downloads.Impl.STATUS_UNKNOWN_ERROR;
         String errorMsg = null;
 
-        final NetworkPolicyManager netPolicy = NetworkPolicyManager.getSystemService(mContext);
+        final NetworkPolicyManager netPolicy = NetworkPolicyManager.from(mContext);
         final PowerManager pm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
 
         try {