-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple multi select data sync and filter (#3568)
* Update top screen menu icons to render multiple Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Decouple syncing and syncing data on multi select view Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Support mutually exclusive select for multi-select widget Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Document class property Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Notify the user of locations missing coordinates Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Improve use experience by notifying the user of locations missing coordinates Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Remove clearing of map on destroy Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Refactor how data is passed between geowidget launcher and the maps fragment Request the data from the map fragment instead of relying on the launcher to publish the data. Previously the launcher could publish data before the subscriber is ready thus leading to data loss. Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Extract constants Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Separate sync and data filter location ids state Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Show no locations selected dialog Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Show no location dialog on missing sync location ids Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * ⬆️ Update kujaku dependencies * 🎨 Fix spotless error * Fix refreshing data on map Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Run spotlessApply Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Delete unused method Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Apply default image size Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * 🎨 Update the icon arrangement * Fix failing tests Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Run spotlessApply Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> * Fix icon positioning Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> --------- Signed-off-by: Elly Kitoto <junkmailstoelly@gmail.com> Co-authored-by: Benjamin Mwalimu <dubdabasoduba@gmail.com>
- Loading branch information
1 parent
64a55e6
commit a6a62f1
Showing
35 changed files
with
747 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="16dp" | ||
android:height="16dp" | ||
android:viewportWidth="16" | ||
android:viewportHeight="16"> | ||
<path | ||
android:pathData="M3.005,2H13.005L7.995,8.3L3.005,2ZM0.255,1.61C2.275,4.2 6.005,9 6.005,9V15C6.005,15.55 6.455,16 7.005,16H9.005C9.555,16 10.005,15.55 10.005,15V9C10.005,9 13.725,4.2 15.745,1.61C16.255,0.95 15.785,0 14.955,0H1.045C0.215,0 -0.255,0.95 0.255,1.61Z" | ||
android:fillColor="#ffffff"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...widget/src/main/java/org/smartregister/fhircore/geowidget/screens/GeoJsonDataRequester.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright 2021-2024 Ona Systems, Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.smartregister.fhircore.geowidget.screens | ||
|
||
import org.smartregister.fhircore.geowidget.model.GeoJsonFeature | ||
|
||
interface GeoJsonDataRequester { | ||
fun requestData(onReceiveData: (List<GeoJsonFeature>) -> Unit) | ||
} |
Oops, something went wrong.