diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-10-25 22:21:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-10-25 22:21:26 +0000 |
commit | 89cb6d0d3e04c9dc5d4075d077aea93d2c47f043 (patch) | |
tree | fcd7a380436c51b7ef09ff70191612a439766f02 /java/com/android/dialer/app/DialtactsActivity.java | |
parent | 98d02be76b210c7ea9281ec7d1fd2779dfa5203e (diff) | |
parent | 3f89169db9591f8c19f4e2df46668e061b230ecc (diff) |
Merge "Fix contacts promo not showing consistently due to scroll settling tab index"
Diffstat (limited to 'java/com/android/dialer/app/DialtactsActivity.java')
-rw-r--r-- | java/com/android/dialer/app/DialtactsActivity.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/com/android/dialer/app/DialtactsActivity.java b/java/com/android/dialer/app/DialtactsActivity.java index 5f4b62c22..b9ca67f62 100644 --- a/java/com/android/dialer/app/DialtactsActivity.java +++ b/java/com/android/dialer/app/DialtactsActivity.java @@ -709,9 +709,8 @@ public class DialtactsActivity extends TransactionSafeActivity startActivity(intent); } - public boolean inAllContactsTab() { - return mListsFragment.getUserVisibleHint() - && mListsFragment.getCurrentTabIndex() == DialtactsPagerAdapter.TAB_INDEX_ALL_CONTACTS; + public boolean isListsFragmentVisible() { + return mListsFragment.getUserVisibleHint(); } @Override |