[NS01.5] Fix an embarrassing bug

The existing implementations override the function with the
int, so the default impl of the function with the int has
to call the new one, not the other way around. Otherwise,
when implementations are migrated to overriding the new one
the old code continues to call the function with the int
and that wouldn't work as expected if it didn't call the
newly overridden method.

Test: TH
Change-Id: Ic31cec6481781e0185a0ba150be52390597737e7
diff --git a/staticlibs/device/android/net/NetworkFactory.java b/staticlibs/device/android/net/NetworkFactory.java
index 4ddb0da..4bc45cf 100644
--- a/staticlibs/device/android/net/NetworkFactory.java
+++ b/staticlibs/device/android/net/NetworkFactory.java
@@ -366,12 +366,12 @@
     /** @deprecated none of the implementors use the score : migrate them */
     @Deprecated
     protected void needNetworkFor(NetworkRequest networkRequest, int score) {
-        if (++mRefCount == 1) startNetwork();
+        needNetworkFor(networkRequest);
     }
 
     // override to do fancier stuff
     protected void needNetworkFor(NetworkRequest networkRequest) {
-        needNetworkFor(networkRequest, 0);
+        if (++mRefCount == 1) startNetwork();
     }
 
     protected void releaseNetworkFor(NetworkRequest networkRequest) {