Check result after send request in PhoneInterfaceManager.
We missed a '.result' in sendRequest, which will cause a wtf log when
doing setNetworkSelectionModeAutomatic.
Bug: 188754213
Test: Make sure no wtf log when we do 'reset Wi-Fi, mobile & bluetooth'
Change-Id: I83db36491ac28f2ba19d718409ede5b3107ed9d6
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 65b8e1f..bf867cf 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -2088,7 +2088,7 @@
// Wait for at least timeoutInMs before returning null request result
long now = SystemClock.elapsedRealtime();
long deadline = now + timeoutInMs;
- while (request == null && now < deadline) {
+ while (request.result == null && now < deadline) {
try {
request.wait(deadline - now);
} catch (InterruptedException e) {