summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/TelephonyRegistry.java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2011-01-12 13:37:38 -0800
committerWink Saville <wink@google.com>2011-01-12 13:37:38 -0800
commitc9330ddcf407e7db17e50167d6820b4a34d57228 (patch)
treed1259ff6207a69672d70083c88dd27d0ba582e0e /services/java/com/android/server/TelephonyRegistry.java
parenta78e9f055834030ebe25480004f667f4bca35232 (diff)
downloadframeworks_base-c9330ddcf407e7db17e50167d6820b4a34d57228.zip
frameworks_base-c9330ddcf407e7db17e50167d6820b4a34d57228.tar.gz
frameworks_base-c9330ddcf407e7db17e50167d6820b4a34d57228.tar.bz2
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
Diffstat (limited to 'services/java/com/android/server/TelephonyRegistry.java')
-rw-r--r--services/java/com/android/server/TelephonyRegistry.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/TelephonyRegistry.java b/services/java/com/android/server/TelephonyRegistry.java
index e881523..eb14180 100644
--- a/services/java/com/android/server/TelephonyRegistry.java
+++ b/services/java/com/android/server/TelephonyRegistry.java
@@ -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 |