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

Commit fdb57510 authored by Bonian Chen's avatar Bonian Chen Committed by Gerrit Code Review
Browse files

Merge "[Settings] Avoid from crash"

parents 14b0af43 fdb3a35e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -93,6 +93,9 @@ public class ApnPreferenceController extends TelephonyBasePreferenceController i
    @Override
    public void updateState(Preference preference) {
        super.updateState(preference);
        if (mPreference == null) {
            return;
        }
        ((RestrictedPreference) mPreference).setDisabledByAdmin(
                MobileNetworkUtils.isDpcApnEnforced(mContext)
                        ? RestrictedLockUtilsInternal.getDeviceOwner(mContext)