[android] Re-enable UI (disable fullscreen mode) when tapping a POI

Signed-off-by: Harry Bond <me@hbond.xyz>
This commit is contained in:
Harry Bond
2025-08-27 13:45:37 +01:00
parent 7be3164db7
commit 674f681197
2 changed files with 6 additions and 0 deletions

View File

@@ -220,6 +220,9 @@ public final class UiUtils
: ContextCompat.getColor(layout.getContext(), R.color.base_red)); : ContextCompat.getColor(layout.getContext(), R.color.base_red));
} }
/*
* Hide the Android UI elements
*/
public static void setFullscreen(@NonNull Activity activity, boolean fullscreen) public static void setFullscreen(@NonNull Activity activity, boolean fullscreen)
{ {
final Window window = activity.getWindow(); final Window window = activity.getWindow();

View File

@@ -675,6 +675,9 @@ public class PlacePageController
mPlacePageBehavior.addBottomSheetCallback(mDefaultBottomSheetCallback); mPlacePageBehavior.addBottomSheetCallback(mDefaultBottomSheetCallback);
mViewModel.getMapObject().observe(requireActivity(), this); mViewModel.getMapObject().observe(requireActivity(), this);
mViewModel.getPlacePageDistanceToTop().observe(requireActivity(), mPlacePageDistanceToTopObserver); mViewModel.getPlacePageDistanceToTop().observe(requireActivity(), mPlacePageDistanceToTopObserver);
// Re-enable UI when POI tapped if in fullscreen mode
UiUtils.setFullscreen(false);
} }
@Override @Override