diff options
author | Nancy Chen <nancychen@google.com> | 2015-07-06 18:25:24 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-07-07 11:33:50 -0700 |
commit | 019713e2b85ff6868c7a77f556b03702d5d07cb0 (patch) | |
tree | 5054fe1251305bacfc161a1c42471f304f00b85f /src/com/android/dialer/DialtactsActivity.java | |
parent | 0356bca6a6a84663f8d4a7075c3c2780ccdb9ca7 (diff) |
Go to recents tab instead of CallLogActivity for call views.
Use the DialtactsActivity instead of CallLogActivity when
accepting ACTION_VIEW intents for the "calls" mime type.
Also remove an unused method in CallLogFragment.
Bug: 22266705
Change-Id: I1bf089901b1a5f9534c9f7a8484c12e535a87749
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 52a33f2b3..e714c7880 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -29,6 +29,7 @@ import android.content.res.Resources; import android.net.Uri; import android.os.Bundle; import android.os.Trace; +import android.provider.CallLog.Calls; import android.speech.RecognizerIntent; import android.support.v4.view.ViewPager; import android.telecom.PhoneAccount; @@ -553,6 +554,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O if (index < mListsFragment.getTabCount()) { mListsFragment.showTab(index); } + } else if (Calls.CONTENT_TYPE.equals(getIntent().getType())) { + mListsFragment.showTab(ListsFragment.TAB_INDEX_RECENTS); } Trace.endSection(); |