1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 16:40:32 +00:00

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
*/
private void remeasureTabs() {
if (getVisibility() != View.VISIBLE) return;
if (prevVisibility != View.VISIBLE) return;
if (layoutWidth == 0) return;
final int count = getTabCount();