diff options
| author | Ravindra <c_rthat@codeaurora.org> | 2014-03-13 12:13:11 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-03-16 21:14:45 -0700 |
| commit | b216c264717f24779eddc32d99537dd25bad1abc (patch) | |
| tree | 14bd5edd8c906f16602db2c73a2e6885e656a7b1 /src | |
| parent | f222fc5c3c056d8335c6ad3ef64f018187bf0f37 (diff) | |
| download | packages_apps_InCallUI-b216c264717f24779eddc32d99537dd25bad1abc.tar.gz packages_apps_InCallUI-b216c264717f24779eddc32d99537dd25bad1abc.tar.bz2 packages_apps_InCallUI-b216c264717f24779eddc32d99537dd25bad1abc.zip | |
Remove dependency on internal telephony
Remove dependency on internal telephony to maintain consistency
with the AOSP design.
Change-Id: Icf582b7c7e73046cb14414ea06babe59262c10ef
CRs-Fixed: 628043
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/incallui/InCallActivity.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/incallui/InCallActivity.java b/src/com/android/incallui/InCallActivity.java index 54fe92e8..621865df 100644 --- a/src/com/android/incallui/InCallActivity.java +++ b/src/com/android/incallui/InCallActivity.java @@ -23,7 +23,6 @@ package com.android.incallui; import java.lang.reflect.Array; import java.util.ArrayList; -import com.android.internal.telephony.Phone; import com.android.services.telephony.common.Call; import com.android.services.telephony.common.Call.State; import com.android.services.telephony.common.CallDetails; @@ -66,6 +65,11 @@ public class InCallActivity extends Activity { /** Use to pass 'showDialpad' from {@link #onNewIntent} to {@link #onResume} */ private boolean mShowDialpadRequested; + // This enum maps to Phone.SuppService defined in telephony + private enum SuppService { + UNKNOWN, SWITCH, SEPARATE, TRANSFER, CONFERENCE, REJECT, HANGUP; + } + @Override protected void onCreate(Bundle icicle) { Log.d(this, "onCreate()... this = " + this); @@ -617,7 +621,7 @@ public class InCallActivity extends Activity { */ void onSuppServiceFailed(int service) { Log.d(this, "onSuppServiceFailed: " + service); - Phone.SuppService result = Phone.SuppService.values()[service]; + SuppService result = SuppService.values()[service]; int errorMessageResId; switch (result) { |
