mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Fix bottom app bar not shown in ViewRedditGalleryImageOrGifFragment.
This commit is contained in:
parent
57985ed95a
commit
a3ddcb874d
@ -228,8 +228,8 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
|
|||||||
if (activity.isUseBottomAppBar()) {
|
if (activity.isUseBottomAppBar()) {
|
||||||
bottomAppBarMenu.setVisibility(View.VISIBLE);
|
bottomAppBarMenu.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
if (captionTextOrUrlIsNotEmpty){
|
if (captionTextOrUrlIsNotEmpty) {
|
||||||
bottomAppBar.setVisibility(View.VISIBLE);
|
captionLayout.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
hideAppBar();
|
hideAppBar();
|
||||||
@ -317,7 +317,7 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
|
|||||||
captionUrlTextView.setHighlightColor(Color.TRANSPARENT);
|
captionUrlTextView.setHighlightColor(Color.TRANSPARENT);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
bottomAppBar.setVisibility(View.GONE);
|
captionLayout.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rootView;
|
return rootView;
|
||||||
@ -335,7 +335,7 @@ public class ViewRedditGalleryImageOrGifFragment extends Fragment {
|
|||||||
if (activity.isUseBottomAppBar()) {
|
if (activity.isUseBottomAppBar()) {
|
||||||
bottomAppBarMenu.setVisibility(View.GONE);
|
bottomAppBarMenu.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
bottomAppBar.setVisibility(View.GONE);
|
captionLayout.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadImage() {
|
private void loadImage() {
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
|
android:minHeight="0dp"
|
||||||
app:paddingBottomSystemWindowInsets="false"
|
app:paddingBottomSystemWindowInsets="false"
|
||||||
android:backgroundTint="#80000000">
|
android:backgroundTint="#80000000">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user