summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialer/calllog
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-24 00:08:25 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-24 00:08:25 +0000
commit5e06d94af135fe5a5b971601a7e6d4a8f420e4d0 (patch)
tree26ebbfff4cf9de5f2b93ef66b96ce2908edbd5ef /src/com/android/dialer/calllog
parent8f25a4d230989a184aa64c80330503d3fabe8490 (diff)
parent75d5b2d7d73e184ed813cc5b42b19d7e21b6bd8c (diff)
downloadpackages_apps_Dialer-5e06d94af135fe5a5b971601a7e6d4a8f420e4d0.tar.gz
packages_apps_Dialer-5e06d94af135fe5a5b971601a7e6d4a8f420e4d0.tar.bz2
packages_apps_Dialer-5e06d94af135fe5a5b971601a7e6d4a8f420e4d0.zip
Merge "Add extra to jump to DialtactsActivity tab." into mnc-dev
Diffstat (limited to 'src/com/android/dialer/calllog')
-rw-r--r--src/com/android/dialer/calllog/DefaultVoicemailNotifier.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
index 3c9fa1d73..d43238a14 100644
--- a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
+++ b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
@@ -32,8 +32,10 @@ import android.text.TextUtils;
import android.util.Log;
import com.android.common.io.MoreCloseables;
+import com.android.dialer.DialtactsActivity;
import com.android.dialer.R;
import com.android.dialer.calllog.PhoneAccountUtils;
+import com.android.dialer.list.ListsFragment;
import com.google.common.collect.Maps;
import java.util.Map;
@@ -172,10 +174,10 @@ public class DefaultVoicemailNotifier {
final Intent contentIntent;
// Open the call log.
// TODO: Send to recents tab in Dialer instead.
- contentIntent = new Intent(Intent.ACTION_VIEW, Calls.CONTENT_URI);
- contentIntent.putExtra(Calls.EXTRA_CALL_TYPE_FILTER, Calls.VOICEMAIL_TYPE);
- notificationBuilder.setContentIntent(
- PendingIntent.getActivity(mContext, 0, contentIntent, 0));
+ contentIntent = new Intent(mContext, DialtactsActivity.class);
+ contentIntent.putExtra(DialtactsActivity.EXTRA_SHOW_TAB, ListsFragment.TAB_INDEX_VOICEMAIL);
+ notificationBuilder.setContentIntent(PendingIntent.getActivity(
+ mContext, 0, contentIntent, PendingIntent.FLAG_UPDATE_CURRENT));
// The text to show in the ticker, describing the new event.
if (callToNotify != null) {