commit | 63305fa8581f5e5430df94ef23027409eb941a8d | [log] [tgz] |
---|---|---|
author | Aurimas Liutikas <aurimas@google.com> | Thu Jun 23 09:46:41 2016 -0700 |
committer | Aurimas Liutikas <aurimas@google.com> | Thu Jun 23 09:51:57 2016 -0700 |
tree | 89889e7a69915ce0c1ce5a2f593db68cd696d14d | |
parent | 742a0bab1008b08552df6b42dbdd01cd3bae301e [diff] |
Add bounds check in TabLayout#getTabAt(int). Added bound check prevents crashes when an app calls notifyDataSetChanged on a PagerAdapter after items' position changes and ViewPager dispatches onPageSelected to TabLayout. See details more detais in the bug. Bug: https://code.google.com/p/android/issues/detail?id=199514 https://code.google.com/p/android/issues/detail?id=213470 Change-Id: Ie04e6d3ce4b39566e5a378b056b33993db4783e2