mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-18 15:54:58 +00:00
Scroll top related streams when loading
This commit is contained in:
parent
a1be03543c
commit
1e53d6bfab
@ -1262,6 +1262,11 @@ public class VideoDetailFragment
|
|||||||
// Only auto play in the first open
|
// Only auto play in the first open
|
||||||
autoPlayEnabled = false;
|
autoPlayEnabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final ViewParent related = relatedStreamRootLayout.getParent();
|
||||||
|
if (related instanceof ScrollView) {
|
||||||
|
((ScrollView) related).scrollTo(0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user