File tree Expand file tree Collapse file tree
app/src/main/java/dev/bluehouse/enablevolte Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments