diff options
author | Brian Attwell <brianattwell@google.com> | 2015-02-03 14:13:58 -0800 |
---|---|---|
committer | Brian Attwell <brianattwell@google.com> | 2015-02-03 17:33:59 -0800 |
commit | 8204324a69c4d6b1b95351ab2863b5ddac6fb0a5 (patch) | |
tree | 74ff149d4d97b4c702b1cf1805ace74c2f8fc601 /src/com/android/dialer/DialtactsActivity.java | |
parent | f5554ceb3c152949b4b6278b7f5e1522148a574c (diff) |
Move CallUtil into Dialer. P1/3
CallUtil relies on the a priviliged intent that should only
be used by system apps. Therefore, it shouldn't be used by an
unbundled Contacts app.
I'm leaving one (isVideoEnabled) method from CallUtil inside
ContactsCommon. This way, when the changes that Tyler made
inside m-wireless-telephony-shamu-dev (b/19062133) get
merged back into master both ContactsCommon and Dialer
will be updated.
Bug: 18777272
Change-Id: I49c9cc714ded01d523ed770a5bf62cf92c378e2f
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index beec280f5..5e8507366 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -59,7 +59,6 @@ import android.widget.ImageButton; import android.widget.PopupMenu; import android.widget.Toast; -import com.android.contacts.common.CallUtil; import com.android.contacts.common.activity.TransactionSafeActivity; import com.android.contacts.common.dialog.ClearFrequentsDialog; import com.android.contacts.common.interactions.ImportExportDialogFragment; @@ -83,6 +82,7 @@ import com.android.dialer.list.SearchFragment; import com.android.dialer.list.SmartDialSearchFragment; import com.android.dialer.list.SpeedDialFragment; import com.android.dialer.settings.DialerSettingsActivity; +import com.android.dialer.util.PrivilegedCallUtil; import com.android.dialer.util.DialerUtils; import com.android.dialer.widget.ActionBarController; import com.android.dialer.widget.SearchEditTextLayout; @@ -1153,8 +1153,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O @Override public void onCallNumberDirectly(String phoneNumber, boolean isVideoCall) { Intent intent = isVideoCall ? - CallUtil.getVideoCallIntent(phoneNumber, getCallOrigin()) : - CallUtil.getCallIntent(phoneNumber, getCallOrigin()); + PrivilegedCallUtil.getVideoCallIntent(phoneNumber, getCallOrigin()) : + PrivilegedCallUtil.getCallIntent(phoneNumber, getCallOrigin()); DialerUtils.startActivityWithErrorToast(this, intent); mClearSearchOnPause = true; } |