Skip to content

Commit 597ec86

Browse files
committed
fix: lint
1 parent c6b0849 commit 597ec86

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

app/src/main/java/dev/bluehouse/enablevolte/BrokerInstrumentation.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ class BrokerInstrumentation : Instrumentation() {
2828
try {
2929
return configurationManager.overrideConfig(subId, overrideValues, true)
3030
} catch (e: SecurityException) {
31-
} catch (e: NoSuchMethodError) {}
31+
} catch (e: NoSuchMethodError) {
32+
}
3233

3334
try {
3435
return configurationManager.overrideConfig(subId, overrideValues, false)
3536
} catch (e: SecurityException) {
36-
} catch (e: NoSuchMethodError) {}
37+
} catch (e: NoSuchMethodError) {
38+
}
3739

3840
configurationManager.overrideConfig(subId, overrideValues)
3941
} finally {

app/src/main/java/dev/bluehouse/enablevolte/Moder.kt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,19 @@ class SubscriptionModer(
195195
}
196196

197197
private fun overrideConfig(bundle: Bundle?) {
198-
val securityPatchDate = try {
199-
LocalDate.parse(Build.VERSION.SECURITY_PATCH)
200-
} catch (e: DateTimeParseException) {
201-
null
202-
}
198+
val securityPatchDate =
199+
try {
200+
LocalDate.parse(Build.VERSION.SECURITY_PATCH)
201+
} catch (e: DateTimeParseException) {
202+
null
203+
}
203204
if (securityPatchDate == null || securityPatchDate.isBefore(LocalDate.of(2025, 10, 1))) {
204205
try {
205206
return this.overrideConfigDirectly(bundle)
206207
} catch (e: SecurityException) {
207208
} catch (e: NoSuchMethodError) {
208-
} catch (e: NoSuchMethodException) {}
209+
} catch (e: NoSuchMethodException) {
210+
}
209211
}
210212
this.overrideConfigUsingBroker(bundle)
211213
}

0 commit comments

Comments
 (0)