diff options
Diffstat (limited to 'src/com/android/contacts/common/list/ViewPagerTabStrip.java')
-rw-r--r-- | src/com/android/contacts/common/list/ViewPagerTabStrip.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/contacts/common/list/ViewPagerTabStrip.java b/src/com/android/contacts/common/list/ViewPagerTabStrip.java index c8ae21a2..125720e6 100644 --- a/src/com/android/contacts/common/list/ViewPagerTabStrip.java +++ b/src/com/android/contacts/common/list/ViewPagerTabStrip.java @@ -70,7 +70,7 @@ public class ViewPagerTabStrip extends LinearLayout { int childCount = getChildCount(); // Thick colored underline below the current selection - if (childCount > 0) { + if (childCount > 0 && mIndexForSelection >= 0 && mIndexForSelection < childCount) { View selectedTitle = getChildAt(mIndexForSelection); if (selectedTitle == null) { |