Merge "Fix MobileNetworkSettings kotlin.UninitializedPropertyAccessException" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
a9f137842a
@@ -49,6 +49,7 @@ class MmsMessagePreferenceController @JvmOverloads constructor(
|
||||
|
||||
override fun getAvailabilityStatus(subId: Int) =
|
||||
if (subId != SubscriptionManager.INVALID_SUBSCRIPTION_ID &&
|
||||
this::telephonyManager.isInitialized &&
|
||||
!telephonyManager.isDataEnabled &&
|
||||
telephonyManager.isApnMetered(ApnSetting.TYPE_MMS) &&
|
||||
!isFallbackDataEnabled()
|
||||
|
Reference in New Issue
Block a user