1
0
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:
Vasily 2018-08-31 17:08:13 +03:00
parent a1be03543c
commit 1e53d6bfab

View File

@ -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);
}
} }