diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-08-04 06:18:48 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-08-04 06:18:48 +0000 |
commit | eca3d91c8b1bee7979da168da89f537f0bd9d21f (patch) | |
tree | 5d0010bbe71a4a7413a6c051ea6f5183592413b1 /app/src/main/java | |
parent | 5ecb2b7f1479d655bc69d45f447d6750096add20 (diff) | |
download | infinity-for-reddit-eca3d91c8b1bee7979da168da89f537f0bd9d21f.tar infinity-for-reddit-eca3d91c8b1bee7979da168da89f537f0bd9d21f.tar.gz infinity-for-reddit-eca3d91c8b1bee7979da168da89f537f0bd9d21f.tar.bz2 infinity-for-reddit-eca3d91c8b1bee7979da168da89f537f0bd9d21f.tar.lz infinity-for-reddit-eca3d91c8b1bee7979da168da89f537f0bd9d21f.tar.xz infinity-for-reddit-eca3d91c8b1bee7979da168da89f537f0bd9d21f.tar.zst infinity-for-reddit-eca3d91c8b1bee7979da168da89f537f0bd9d21f.zip |
Set title to bottom app bar in ViewVideoActivity.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java | 10 |
1 files changed, 8 insertions, 2 deletions
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("<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 { - setTitle(""); + if (!useBottomAppBar) { + setTitle(""); + } } videoPlayerView.setControllerVisibilityListener(visibility -> { |