Scroll top related streams when loading

pull/1617/head
Vasily 2018-08-31 17:08:13 +03:00
rodzic a1be03543c
commit 1e53d6bfab
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -1262,6 +1262,11 @@ public class VideoDetailFragment
// Only auto play in the first open
autoPlayEnabled = false;
}
final ViewParent related = relatedStreamRootLayout.getParent();
if (related instanceof ScrollView) {
((ScrollView) related).scrollTo(0, 0);
}
}