From 6261efc34467ca951802025614099f7ff6c62c8b Mon Sep 17 00:00:00 2001 From: Bruno Lazarini Sigg Date: Thu, 19 Dec 2024 14:49:02 +0100 Subject: [PATCH] fix: no filter bubble should appear when the no alerts are being filtered --- app/src/main/java/com/android/periodpals/ui/map/Map.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/android/periodpals/ui/map/Map.kt b/app/src/main/java/com/android/periodpals/ui/map/Map.kt index 8c793d43..d407b685 100644 --- a/app/src/main/java/com/android/periodpals/ui/map/Map.kt +++ b/app/src/main/java/com/android/periodpals/ui/map/Map.kt @@ -262,7 +262,10 @@ fun MapScreen( radiusInMeters = radius productFilter = stringToProduct(product) urgencyFilter = stringToUrgency(urgency) - isFilterApplied = true + isFilterApplied = + (radius != 100.0) || + (productFilter != Product.NO_PREFERENCE) || + (urgencyFilter != null) Log.d(TAG, "The selected location is: $selectedLocation")