getPreferredNetworkType should return int[] instead of -1 on error.
am: cfc2d354cf
* commit 'cfc2d354cfd2d421b2f3d6cb105ca2e0f763b802':
getPreferredNetworkType should return int[] instead of -1 on error.
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index d61ef59..21b3b22 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -604,7 +604,7 @@
if (ar.exception == null && ar.result != null) {
request.result = ar.result; // Integer
} else {
- request.result = -1;
+ request.result = null;
if (ar.result == null) {
loge("getPreferredNetworkType: Empty response");
} else if (ar.exception instanceof CommandException) {