improve code consistency in ScrollableTabLayout

This commit is contained in:
Paweł Matuszewski 2020-01-01 14:12:45 +01:00 committed by TobiGr
parent 1393d3ad7f
commit 3625a38a23

View file

@ -106,7 +106,7 @@ public class ScrollableTabLayout extends TabLayout {
* Calculate minimal width required by tabs and set tabMode accordingly * Calculate minimal width required by tabs and set tabMode accordingly
*/ */
private void remeasureTabs() { private void remeasureTabs() {
if (getVisibility() != View.VISIBLE) return; if (prevVisibility != View.VISIBLE) return;
if (layoutWidth == 0) return; if (layoutWidth == 0) return;
final int count = getTabCount(); final int count = getTabCount();