OSDN Git Service

Fix problems with wiring of initializing calls (1/2)
authorIhab Awad <ihab@google.com>
Thu, 14 Aug 2014 01:17:29 +0000 (18:17 -0700)
committerIhab Awad <ihab@google.com>
Thu, 14 Aug 2014 22:01:02 +0000 (15:01 -0700)
Bug: 16993846
Change-Id: I3ed4dd30559511f51b3650bf99bd704ae73d2165

telecomm/java/android/telecomm/ConnectionService.java

index d5e4f1b..f59b4ed 100644 (file)
@@ -481,15 +481,12 @@ public abstract class ConnectionService extends Service {
                             case Connection.STATE_INITIALIZING:
                                 Log.d(this, "State changed to STATE_INITIALIZING; ignoring");
                                 return; // Don't want to stop listening on this state transition.
-                            default:
-                                Log.d(this, "Connection created in state %s",
-                                        Connection.stateToString(state));
-                                connectionCreated(callId, request, createdConnection);
-                                break;
                         }
                         c.removeConnectionListener(this);
                     }
                 });
+                Log.d(this, "Connection created in state INITIALIZING");
+                connectionCreated(callId, request, createdConnection);
             } else if (createdConnection.getState() == Connection.STATE_CANCELED) {
                 // Tell telecomm not to attempt any more services.
                 mAdapter.handleCreateConnectionCancelled(callId, request);