Compare commits

...

1 Commits

Author SHA1 Message Date
Harry Bond
674f681197 [android] Re-enable UI (disable fullscreen mode) when tapping a POI
Signed-off-by: Harry Bond <me@hbond.xyz>
2025-08-27 13:47:27 +01:00
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));
}
/*
* Hide the Android UI elements
*/
public static void setFullscreen(@NonNull Activity activity, boolean fullscreen)
{
final Window window = activity.getWindow();

View File

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