summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android/telecomm/CallServiceSelector.java
diff options
context:
space:
mode:
Diffstat (limited to 'telecomm/java/android/telecomm/CallServiceSelector.java')
-rw-r--r--telecomm/java/android/telecomm/CallServiceSelector.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/telecomm/java/android/telecomm/CallServiceSelector.java b/telecomm/java/android/telecomm/CallServiceSelector.java
index a2ff617..8c9495f 100644
--- a/telecomm/java/android/telecomm/CallServiceSelector.java
+++ b/telecomm/java/android/telecomm/CallServiceSelector.java
@@ -50,10 +50,9 @@ public abstract class CallServiceSelector extends Service {
public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_SET_CALL_SERVICE_SELECTOR_ADAPTER:
- CallServiceSelectorAdapter adapter = new CallServiceSelectorAdapter(
+ mAdapter = new CallServiceSelectorAdapter(
(ICallServiceSelectorAdapter) msg.obj);
- mAdapter = adapter;
- onAdapterAttached(adapter);
+ onAdapterAttached(mAdapter);
break;
case MSG_SELECT:
SomeArgs args = (SomeArgs) msg.obj;