diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-12-09 01:46:28 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-12-09 01:46:28 +0000 |
commit | 20ebcdca46e6be68050cd44087f0f768f5dae5c6 (patch) | |
tree | 5bc845fb459a8958ec9c5a055d12a84c92b23443 /java/com/android/dialer/app/calllog/IntentProvider.java | |
parent | d806c2321eba63fa6d8f28471ab48847b8b6e92c (diff) | |
parent | 77c2b4c1711cee43b69d54bf180e14ccda70e92f (diff) |
Merge changes I220cb741,I471b2d19
* changes:
Add "Set up" and "Invite" for video to call log entry actions
Fix voicemail populator bug and change emergency call to emergency call back.
Diffstat (limited to 'java/com/android/dialer/app/calllog/IntentProvider.java')
-rw-r--r-- | java/com/android/dialer/app/calllog/IntentProvider.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/calllog/IntentProvider.java b/java/com/android/dialer/app/calllog/IntentProvider.java index 0835d894c..996bca0f6 100644 --- a/java/com/android/dialer/app/calllog/IntentProvider.java +++ b/java/com/android/dialer/app/calllog/IntentProvider.java @@ -22,6 +22,7 @@ import android.content.Intent; import android.net.Uri; import android.provider.ContactsContract; import android.support.annotation.Nullable; +import android.telecom.PhoneAccount; import android.telecom.PhoneAccountHandle; import android.telephony.TelephonyManager; import com.android.contacts.common.model.Contact; @@ -32,6 +33,7 @@ import com.android.dialer.callintent.CallInitiationType; import com.android.dialer.callintent.CallIntentBuilder; import com.android.dialer.dialercontact.DialerContact; import com.android.dialer.duo.DuoComponent; +import com.android.dialer.duo.DuoConstants; import com.android.dialer.precall.PreCall; import com.android.dialer.util.IntentUtil; import java.util.ArrayList; @@ -102,6 +104,29 @@ public abstract class IntentProvider { }; } + public static IntentProvider getSetUpDuoIntentProvider() { + return new IntentProvider() { + @Override + public Intent getIntent(Context context) { + return new Intent("com.google.android.apps.tachyon.action.REGISTER") + .setPackage(DuoConstants.PACKAGE_NAME); + } + }; + } + + public static IntentProvider getDuoInviteIntentProvider(String number) { + return new IntentProvider() { + @Override + public Intent getIntent(Context context) { + Intent intent = + new Intent("com.google.android.apps.tachyon.action.INVITE") + .setPackage(DuoConstants.PACKAGE_NAME) + .setData(Uri.fromParts(PhoneAccount.SCHEME_TEL, number, null /* fragment */)); + return intent; + } + }; + } + public static IntentProvider getReturnVoicemailCallIntentProvider( @Nullable PhoneAccountHandle phoneAccountHandle) { return new IntentProvider() { |