Fix for DisconnectCause.INVALID_NUMBER being returned
The local variable action wasn't being updated with new intent action
after rewriteCallIntentAction was called, causing it to retain the value of
CALL_PRIVILEGED and the INVALID_NUMBER codepath to be executed.
Bug: 17430765
Change-Id: I092b94f2cbaec8fbf9d39c739a6c976483869526
diff --git a/src/com/android/telecomm/NewOutgoingCallIntentBroadcaster.java b/src/com/android/telecomm/NewOutgoingCallIntentBroadcaster.java
index 14c86bc..e2b4a15 100644
--- a/src/com/android/telecomm/NewOutgoingCallIntentBroadcaster.java
+++ b/src/com/android/telecomm/NewOutgoingCallIntentBroadcaster.java
@@ -199,6 +199,7 @@
Log.v(this, "isPotentialEmergencyNumber = %s", isPotentialEmergencyNumber);
rewriteCallIntentAction(intent, isPotentialEmergencyNumber);
+ action = intent.getAction();
// True for certain types of numbers that are not intended to be intercepted or modified
// by third parties (e.g. emergency numbers).
boolean callImmediately = false;