-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[154] Differentiate masked images (#65)
* [154] Differentiaties masked images * [154] Replaces magic number * Fixes MaxLineLength in SampleImagesAdapter * [154] Modifies blood sample views to add masked dot * [154] Checks if mask bitmap is empty * [154] Removes unnecssary layout for masked sample * Fixes NewLineAtEndOfFile debt * [154] Uses View Binding in SampleImagesAdapter * [154] Removes unnecessary contraint layout * Updates recycler view Co-authored-by: Eduard-Cristian Boloș <[email protected]> * [154] Updates sample images layouts * Uses isVisible instead of visibility for dot image Co-authored-by: Eduard-Cristian Boloș <[email protected]> * Adds isVisible import * [154] Moves binding to ImageViewHolder * [154] Display mask over blood samples in metadata screen * [154] Improve captured images modeling * [154] Fix spacing between sample images * [154] Add missing top margin on metadata screen * [154] Rename Images to Captures * [154] Make it clearer how adding masks to captures works * [154] Remove unnecessary semicolon * [154] Remove resolved TODO Co-authored-by: Clara Gaset <[email protected]> Co-authored-by: Clara Gaset <[email protected]>
- Loading branch information
1 parent
f66e7bf
commit 20117b4
Showing
25 changed files
with
475 additions
and
208 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
12 changes: 0 additions & 12 deletions
12
app/src/main/java/net/aiscope/gdd_app/extensions/Collections.kt
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
app/src/main/java/net/aiscope/gdd_app/extensions/CollectionsExt.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,5 @@ | ||
package net.aiscope.gdd_app.extensions | ||
|
||
|
||
fun <T> List<T>.replaceElementAt(index: Int, value: T) = | ||
this.slice(0 until index) + value + this.slice(index + 1 until this.size) |
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
4 changes: 2 additions & 2 deletions
4
app/src/main/java/net/aiscope/gdd_app/ui/metadata/MetadataView.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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package net.aiscope.gdd_app.ui.metadata | ||
|
||
import java.io.File | ||
import net.aiscope.gdd_app.model.CompletedCapture | ||
|
||
interface MetadataView { | ||
fun fillForm(model: ViewStateModel) | ||
fun captureImage(nextImageName: String) | ||
fun editImage(disease: String, image: File, mask: File) | ||
fun editCapture(disease: String, capture: CompletedCapture) | ||
fun finishFlow() | ||
fun showRetryBar() | ||
} |
Oops, something went wrong.