Skip to content

Commit

Permalink
guessRats: use metadata subTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
handymenny committed Nov 17, 2024
1 parent 743a739 commit fd0211f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ class JavalinApp {
return listOf(Rat.EUTRA)
}

// if there's metadata subTypes return that
capabilities.getStringMetadata("subTypes")?.run {
return split(", ").map(Rat::valueOf)

Check warning on line 253 in src/main/java/it/smartphonecombo/uecapabilityparser/server/JavalinApp.kt

View check run for this annotation

Codecov / codecov/patch

src/main/java/it/smartphonecombo/uecapabilityparser/server/JavalinApp.kt#L253

Added line #L253 was not covered by tests
}

val defaultRatList = listOf(Rat.EUTRA, Rat.NR, Rat.EUTRA_NR)

if (inputsLength == 3) {
Expand Down

0 comments on commit fd0211f

Please sign in to comment.