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

Commit c9330ddc authored by Wink Saville's avatar Wink Saville
Browse files

Initialize mOtaspMode to OTASP_UNKNOWN.

Without the explicit initialized the default value was 0 which
is OTASP_UNINITIALIZED instead it should be OTASP_UNKNOWN.

Change-Id: I44ffc60618c0b1d49e07ccbce408c4e9921d8130
parent a78e9f05
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import com.android.internal.telephony.ITelephonyRegistry;
import com.android.internal.telephony.IPhoneStateListener;
import com.android.internal.telephony.DefaultPhoneNotifier;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.ServiceStateTracker;
import com.android.internal.telephony.TelephonyIntents;
import com.android.server.am.BatteryStatsService;

@@ -103,7 +104,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {

    private int mDataConnectionNetworkType;

    private int mOtaspMode;
    private int mOtaspMode = ServiceStateTracker.OTASP_UNKNOWN;

    static final int PHONE_STATE_PERMISSION_MASK =
                PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR |