@@ -40,7 +40,7 @@ data class Evaluation(
4040 @JsonProperty(" icon" ) var icon : Icon ? ,
4141 @JsonProperty(" rating" ) val rating : Int ,
4242 @JsonProperty(" microg" ) val microg : Int ,
43- @JsonProperty(" rooted" ) val rooted : Int ,
43+ @JsonProperty(" rooted" ) val secure : Int ,
4444 @JsonProperty(" updatedAt" ) val updatedAt : Date ? ,
4545 @JsonProperty(" createdAt" ) val createdAt : Date ? ,
4646 @JsonProperty(" publishedAt" ) val publishedAt : Date ? ,
@@ -140,17 +140,17 @@ object GmsType {
140140}
141141
142142object UserType {
143- const val USER = 3
144- const val ROOT = 4
143+ const val SECURE = 3
144+ const val RISKY = 4
145145}
146146
147147data class Label (val text : String , val color : Int ) {
148148
149149 companion object {
150150 const val MICROG = GmsType .MICROG
151151 const val BARE_AOSP = GmsType .BARE_AOSP
152- const val USER = UserType .USER
153- const val ROOTED = UserType .ROOT
152+ const val SECURE = UserType .SECURE
153+ const val RISKY = UserType .RISKY
154154
155155 @RequiresApi(Build .VERSION_CODES .M )
156156 fun create (context : Context , label : Int ): Label {
@@ -161,11 +161,11 @@ data class Label(val text: String, val color: Int) {
161161 BARE_AOSP -> Label (
162162 context.getString(R .string.bare_aosp_label), context.getColor(R .color.blue_700)
163163 )
164- USER -> Label (
165- context.getString(R .string.user_label ), context.getColor(R .color.purple_200)
164+ SECURE -> Label (
165+ context.getString(R .string.secure_label ), context.getColor(R .color.purple_200)
166166 )
167- ROOTED -> Label (
168- context.getString(R .string.rooted_label ), context.getColor(R .color.purple_700)
167+ RISKY -> Label (
168+ context.getString(R .string.risky_label ), context.getColor(R .color.purple_700)
169169 )
170170 else -> Label (" Empty label " , context.getColor(R .color.black))
171171 }
0 commit comments