Set title to bottom app bar in ViewVideoActivity.

This commit is contained in:
Alex Ning 2021-08-04 14:18:48 +08:00
parent 5ecb2b7f14
commit eca3d91c8b

View File

@ -302,10 +302,16 @@ public class ViewVideoActivity extends AppCompatActivity {
if (postTitle != null) {
setTitle(Html.fromHtml(String.format("<small>%s</small>", postTitle)));
if (useBottomAppBar) {
titleTextView.setText(Html.fromHtml(String.format("<small>%s</small>", postTitle)));
} else {
setTitle(Html.fromHtml(String.format("<small>%s</small>", postTitle)));
}
} else {
if (!useBottomAppBar) {
setTitle("");
}
}
videoPlayerView.setControllerVisibilityListener(visibility -> {
switch (visibility) {