improve code consistency in ScrollableTabLayout
This commit is contained in:
parent
1393d3ad7f
commit
3625a38a23
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue