Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 083fda36 authored by songferngwang's avatar songferngwang Committed by SongFerng Wang
Browse files

Fix MobileNetworkSettings kotlin.UninitializedPropertyAccessException

Bug: 332477183
Test: atest MmsMessagePreferenceControllerTest

Change-Id: I849ca0f333f5246d73192ae4180b3f3ce3946d61
(cherry picked from commit 34cec138)
parent 43d0dfdc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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()