Skip to content

Commit

Permalink
fix: Split setRules error
Browse files Browse the repository at this point in the history
Signed-off-by: Hu Shenghao <[email protected]>
  • Loading branch information
hushenghao committed Jul 17, 2024
1 parent 179fb77 commit be934b9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ import com.dede.android_eggs.R
class SplitInitializer : Initializer<Unit> {

override fun create(context: Context) {
val ruleController = RuleController.getInstance(context)
val rules = RuleController.parseRules(context, R.xml.split_configuration)
ruleController.setRules(rules)
try {
val ruleController = RuleController.getInstance(context)
val rules = RuleController.parseRules(context, R.xml.split_configuration)
ruleController.setRules(rules)
} catch (ignore: RuntimeException) {
}
}

override fun dependencies(): List<Class<out Initializer<*>>> = emptyList()
Expand Down

0 comments on commit be934b9

Please sign in to comment.