Fix Crash due to runtime exception from CarrierManager

Fix: 329754400
Test: atest passed
Change-Id: I6065160dcd15d547241dd8bc0f9f99c336c59625
This commit is contained in:
tomhsu
2024-05-29 05:11:59 +00:00
parent a54a9756c0
commit a5f3d46539
2 changed files with 26 additions and 0 deletions

View File

@@ -36,4 +36,7 @@ fun CarrierConfigManager.safeGetConfig(
// Settings should not assume Carrier config loader (and any other system services as well) are
// always available. If not available, use default value instead.
persistableBundleOf()
} catch (e: RuntimeException) {
// The reason is same with above.
persistableBundleOf()
}