commit | cfc2d354cfd2d421b2f3d6cb105ca2e0f763b802 | [log] [tgz] |
---|---|---|
author | Sanket Padawe <sanketpadawe@google.com> | Tue Jan 05 19:52:14 2016 -0800 |
committer | Sanket Padawe <sanketpadawe@google.com> | Wed Jan 06 11:56:08 2016 -0800 |
tree | 643d10a5b9e25daee9f0267494702cac896a2c20 | |
parent | ca7401490288d79c1a3589b8a8d97a7ed52b2473 [diff] |
getPreferredNetworkType should return int[] instead of -1 on error. Bug: 25224221 Change-Id: I6cd3492e93ab1a6cc17fb9385a970e6ad22aa0f4
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) {