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,9 +302,15 @@ public class ViewVideoActivity extends AppCompatActivity {
if (postTitle != null) { 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 { } else {
setTitle(""); if (!useBottomAppBar) {
setTitle("");
}
} }
videoPlayerView.setControllerVisibilityListener(visibility -> { videoPlayerView.setControllerVisibilityListener(visibility -> {