diff options
author | Nancy Chen <nancychen@google.com> | 2015-10-23 16:24:03 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-10-26 18:01:32 -0700 |
commit | 9e40502d2b5685b6996ecee7b3b3c812d5b06ec8 (patch) | |
tree | 6b62f7378f34b732094095ed6c9c992345f9b54f /src/com/android/dialer/list/ListsFragment.java | |
parent | fb2f5e5434c60fe2039be16734cea5fd06238497 (diff) |
Fix voicemail tab items reading "speed dial" when selected.
The voicemail entries were reading "speed dial" because the focus would go
to the newly added "speed dial" tab since the tabs are all removed and
readded when the tab info changes. Change the logic so that only the
voicemail tab is changed when needed.
The voicemail entry reads "seek playback" instead of the information
about the voicemail because of custom expand logic for accessibilty.
Change it so that only the call log items are expanded when selected
(it is more important to be able to discover the overflow options).
Also change content description text because it was too long and confusing.
Bug: 25124120
Change-Id: I64c1b27d8c0db57525f7f4ada59655e9f8352245
Diffstat (limited to 'src/com/android/dialer/list/ListsFragment.java')
-rw-r--r-- | src/com/android/dialer/list/ListsFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/list/ListsFragment.java b/src/com/android/dialer/list/ListsFragment.java index c80ab4274..934792cdd 100644 --- a/src/com/android/dialer/list/ListsFragment.java +++ b/src/com/android/dialer/list/ListsFragment.java @@ -313,7 +313,7 @@ public class ListsFragment extends Fragment if (hasActiveVoicemailProvider != mHasActiveVoicemailProvider) { mHasActiveVoicemailProvider = hasActiveVoicemailProvider; mViewPagerAdapter.notifyDataSetChanged(); - mViewPagerTabs.setViewPager(mViewPager); + mViewPagerTabs.updateTab(TAB_INDEX_VOICEMAIL); mPrefs.edit() .putBoolean(PREF_KEY_HAS_ACTIVE_VOICEMAIL_PROVIDER, hasActiveVoicemailProvider) @@ -344,7 +344,7 @@ public class ListsFragment extends Fragment } mViewPagerTabs.setUnreadCount(count, TAB_INDEX_VOICEMAIL); - mViewPagerTabs.setViewPager(mViewPager); + mViewPagerTabs.updateTab(TAB_INDEX_VOICEMAIL); } @Override |