aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-12-03 20:41:25 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-12-03 20:41:25 +0000
commita3ddcb874d9be151c30928b9b371ef4439eb59e9 (patch)
treefab1f55a3210073e43b4713e76fc828b6965667d /app/src/main/java
parent57985ed95ad0cb05d72c49a8d2c8bf5a2861b0e4 (diff)
downloadinfinity-for-reddit-a3ddcb874d9be151c30928b9b371ef4439eb59e9.tar
infinity-for-reddit-a3ddcb874d9be151c30928b9b371ef4439eb59e9.tar.gz
infinity-for-reddit-a3ddcb874d9be151c30928b9b371ef4439eb59e9.tar.bz2
infinity-for-reddit-a3ddcb874d9be151c30928b9b371ef4439eb59e9.tar.lz
infinity-for-reddit-a3ddcb874d9be151c30928b9b371ef4439eb59e9.tar.xz
infinity-for-reddit-a3ddcb874d9be151c30928b9b371ef4439eb59e9.tar.zst
infinity-for-reddit-a3ddcb874d9be151c30928b9b371ef4439eb59e9.zip
Fix bottom app bar not shown in ViewRedditGalleryImageOrGifFragment.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryImageOrGifFragment.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryImageOrGifFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryImageOrGifFragment.java
index 839b47ec..39090be1 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryImageOrGifFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryImageOrGifFragment.java
@@ -228,8 +228,8 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
if (activity.isUseBottomAppBar()) {
bottomAppBarMenu.setVisibility(View.VISIBLE);
}
- if (captionTextOrUrlIsNotEmpty){
- bottomAppBar.setVisibility(View.VISIBLE);
+ if (captionTextOrUrlIsNotEmpty) {
+ captionLayout.setVisibility(View.VISIBLE);
}
} else {
hideAppBar();
@@ -317,7 +317,7 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
captionUrlTextView.setHighlightColor(Color.TRANSPARENT);
}
} else {
- bottomAppBar.setVisibility(View.GONE);
+ captionLayout.setVisibility(View.GONE);
}
return rootView;
@@ -335,7 +335,7 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
if (activity.isUseBottomAppBar()) {
bottomAppBarMenu.setVisibility(View.GONE);
}
- bottomAppBar.setVisibility(View.GONE);
+ captionLayout.setVisibility(View.GONE);
}
private void loadImage() {