summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/phone/common/util/StartInCallCallReceiver.java42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/com/android/phone/common/util/StartInCallCallReceiver.java b/src/com/android/phone/common/util/StartInCallCallReceiver.java
deleted file mode 100644
index c2dd3c0..0000000
--- a/src/com/android/phone/common/util/StartInCallCallReceiver.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package com.android.phone.common.util;
-
-import android.os.Bundle;
-import android.os.Handler;
-import android.os.ResultReceiver;
-import android.util.Log;
-
-import java.lang.ref.WeakReference;
-
-public class StartInCallCallReceiver extends ResultReceiver {
- private static final String TAG = StartInCallCallReceiver.class.getSimpleName();
- private static final boolean DEBUG = false;
-
- private WeakReference<Receiver> mReceiver;
-
- public StartInCallCallReceiver(Handler handler) {
- super(handler);
- }
-
- @Override
- protected void onReceiveResult(int resultCode, Bundle resultData) {
- if (DEBUG) {
- Log.d(TAG, "Result received resultCode: " + resultCode + " resultData: " + resultData);
- }
-
- if (mReceiver != null) {
- Receiver receiver = mReceiver.get();
- if (receiver != null) {
- receiver.onReceiveResult(resultCode, resultData);
- }
- }
- }
-
- public interface Receiver {
- public void onReceiveResult(int resultCode, Bundle resultData);
- }
-
- public void setReceiver(Receiver receiver) {
- mReceiver = new WeakReference<Receiver>(receiver);
- }
-
-} \ No newline at end of file