diff options
author | Nancy Chen <nancychen@google.com> | 2015-07-01 09:20:45 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-07-01 10:23:22 -0700 |
commit | d5de03bcc20fcdb667fdc9d0eb56f0d6c57da0c8 (patch) | |
tree | 5bd91ddef2309e73359320516aa1bed37c2cfb08 /src/com/android/dialer/list/ListsFragment.java | |
parent | 82d30284d32d2e563661ad0a1465c1b9bf501a9f (diff) |
Ensure the EXTRA_SHOW_TAB is checked for all new intents.
onNewIntent is only called when the activity is already active so when
an intent is sent to start the DialtactsActivity on a specific tab when
the DialtactsActivity is not already active, the code to switch to the
specific tab is not called. Move this code to onResume() instead.
Bug: 21120186
Change-Id: I735eae22ca5de54f4c17688777b4309616f2c691
Diffstat (limited to 'src/com/android/dialer/list/ListsFragment.java')
-rw-r--r-- | src/com/android/dialer/list/ListsFragment.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index e45da0ce0..33c977670 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -347,6 +347,10 @@ public class ListsFragment extends Fragment return mRemoveView; } + public int getTabCount() { + return mViewPagerAdapter.getCount(); + } + private int getRtlPosition(int position) { if (DialerUtils.isRtl()) { return mViewPagerAdapter.getCount() - 1 - position; |