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:
parent
1393d3ad7f
commit
3625a38a23
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user