mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-11 09:50: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
|
* 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 New Issue
Block a user