diff options
author | Chiao Cheng <chiaocheng@google.com> | 2012-09-05 16:00:16 -0700 |
---|---|---|
committer | Chiao Cheng <chiaocheng@google.com> | 2012-09-05 16:00:16 -0700 |
commit | 9d4f3b20793a007b4489547aa40fc1049d0d8fef (patch) | |
tree | 4903ec17ccdc74d6c5977767052b2529b77bba14 /src/com/android/dialer/CallDetailActivity.java | |
parent | 91197049c458f07092b31501d2ed512180b13d58 (diff) |
Moving resources from Contacts to Dialer.
- Also moving some shared utilities.
Bug: 6993891
Change-Id: I5fa18d26e4f5423f4d3f3450b8f3e3dacbfb947a
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index cb1437d4a..56d4f9ccb 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -51,12 +51,12 @@ import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; +import com.android.contacts.common.CallUtil; import com.android.contacts.ContactPhotoManager; import com.android.contacts.ContactsUtils; import com.android.contacts.R; import com.android.contacts.format.FormatUtils; -import com.android.contacts.util.ClipboardUtils; -import com.android.contacts.util.Constants; +import com.android.contacts.common.ClipboardUtils; import com.android.dialer.BackScrollManager.ScrollableHeader; import com.android.dialer.calllog.CallDetailHistoryAdapter; import com.android.dialer.calllog.CallTypeHelper; @@ -371,8 +371,8 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); if (tm.getCallState() == TelephonyManager.CALL_STATE_IDLE) { - startActivity(ContactsUtils.getCallIntent( - Uri.fromParts(Constants.SCHEME_TEL, mNumber, null))); + startActivity(CallUtil.getCallIntent( + Uri.fromParts(CallUtil.SCHEME_TEL, mNumber, null))); return true; } } @@ -513,7 +513,7 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware ViewEntry entry = new ViewEntry( getString(R.string.menu_callNumber, FormatUtils.forceLeftToRight(displayNumber)), - ContactsUtils.getCallIntent(mNumber), + CallUtil.getCallIntent(mNumber), getString(R.string.description_call, nameOrNumber)); // Only show a label if the number is shown and it is not a SIP address. @@ -820,7 +820,7 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware } public void onMenuEditNumberBeforeCall(MenuItem menuItem) { - startActivity(new Intent(Intent.ACTION_DIAL, ContactsUtils.getCallUri(mNumber))); + startActivity(new Intent(Intent.ACTION_DIAL, CallUtil.getCallUri(mNumber))); } public void onMenuTrashVoicemail(MenuItem menuItem) { |