File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
src/main/java/bg/dabulgaria/tibroish
presentation/ui/violation/list Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ android {
38
38
applicationId " bg.dabulgaria.tibroish"
39
39
minSdkVersion 21
40
40
targetSdkVersion 30
41
- versionCode 11
41
+ versionCode 12
42
42
versionName " 1.1.0.$versionCode "
43
43
testInstrumentationRunner ' androidx.test.runner.AndroidJUnitRunner'
44
44
signingConfig signingConfigs.AppSigning
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package bg.dabulgaria.tibroish.domain.violation
2
2
3
3
import bg.dabulgaria.tibroish.domain.image.PictureDto
4
4
import bg.dabulgaria.tibroish.domain.locations.SectionRemote
5
+ import bg.dabulgaria.tibroish.domain.locations.TownRemote
5
6
import com.google.gson.annotations.SerializedName
6
7
import java.io.Serializable
7
8
@@ -18,6 +19,7 @@ class SendViolationRequest constructor(
18
19
class VoteViolationRemote (
19
20
val id : String ,
20
21
val section : SectionRemote ? ,
22
+ val town : TownRemote ? ,
21
23
val pictures : List <PictureDto >,
22
24
val description : String ,
23
25
val status : ViolationRemoteStatus ,
Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ class ViolationsAdapter @Inject constructor(private val statusColorUtil: IStatus
43
43
number= " "
44
44
}
45
45
46
- holder.itemView.violationPlace.visibility = if (! violationSignal.section?.place .isNullOrEmpty())
46
+ holder.itemView.violationPlace.visibility = if (! violationSignal.town?.name .isNullOrEmpty())
47
47
View .VISIBLE
48
48
else
49
49
View .GONE
50
50
51
- violationSignal.section?.place ?.let {
51
+ violationSignal.town?.name ?.let {
52
52
val place = " ${number}${context.getString(R .string.location_label)} $it "
53
53
holder.itemView.violationPlace.text = place
54
54
number= " "
You can’t perform that action at this time.
0 commit comments