From eca3d91c8b1bee7979da168da89f537f0bd9d21f Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 4 Aug 2021 14:18:48 +0800 Subject: Set title to bottom app bar in ViewVideoActivity. --- .../infinityforreddit/activities/ViewVideoActivity.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java index 0b1da47b..7362e892 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java @@ -302,9 +302,15 @@ public class ViewVideoActivity extends AppCompatActivity { if (postTitle != null) { - setTitle(Html.fromHtml(String.format("%s", postTitle))); + if (useBottomAppBar) { + titleTextView.setText(Html.fromHtml(String.format("%s", postTitle))); + } else { + setTitle(Html.fromHtml(String.format("%s", postTitle))); + } } else { - setTitle(""); + if (!useBottomAppBar) { + setTitle(""); + } } videoPlayerView.setControllerVisibilityListener(visibility -> { -- cgit v1.2.3