mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[android] Re-enable UI (disable fullscreen mode) when tapping a POI
Signed-off-by: Harry Bond <me@hbond.xyz>
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user