am 8688d470: Moving flag to a member field instead of a stack variable.
* commit '8688d4708117db446d6ba2855f1d8ad715bb4d72': Moving flag to a member field instead of a stack variable.
This commit is contained in:
@@ -468,6 +468,9 @@ public class StatusBarPolicy {
|
|||||||
ServiceState mServiceState;
|
ServiceState mServiceState;
|
||||||
SignalStrength mSignalStrength;
|
SignalStrength mSignalStrength;
|
||||||
|
|
||||||
|
// flag for signal strength behavior
|
||||||
|
private boolean mAlwaysUseCdmaRssi;
|
||||||
|
|
||||||
// data connection
|
// data connection
|
||||||
private boolean mDataIconVisible;
|
private boolean mDataIconVisible;
|
||||||
private boolean mHspaDataDistinguishable;
|
private boolean mHspaDataDistinguishable;
|
||||||
@@ -600,6 +603,8 @@ public class StatusBarPolicy {
|
|||||||
mPhone = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
|
mPhone = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
|
||||||
mPhoneSignalIconId = R.drawable.stat_sys_signal_null;
|
mPhoneSignalIconId = R.drawable.stat_sys_signal_null;
|
||||||
mService.setIcon("phone_signal", mPhoneSignalIconId, 0);
|
mService.setIcon("phone_signal", mPhoneSignalIconId, 0);
|
||||||
|
mAlwaysUseCdmaRssi = mContext.getResources().getBoolean(
|
||||||
|
com.android.internal.R.bool.config_alwaysUseCdmaRssi);
|
||||||
|
|
||||||
// register for phone state notifications.
|
// register for phone state notifications.
|
||||||
((TelephonyManager)mContext.getSystemService(Context.TELEPHONY_SERVICE))
|
((TelephonyManager)mContext.getSystemService(Context.TELEPHONY_SERVICE))
|
||||||
@@ -1075,13 +1080,11 @@ public class StatusBarPolicy {
|
|||||||
} else {
|
} else {
|
||||||
iconList = sSignalImages[mInetCondition];
|
iconList = sSignalImages[mInetCondition];
|
||||||
|
|
||||||
boolean alwaysUseCdmaRssi = mContext.getResources().getBoolean(
|
|
||||||
com.android.internal.R.bool.config_alwaysUseCdmaRssi);
|
|
||||||
// If 3G(EV) and 1x network are available than 3G should be
|
// If 3G(EV) and 1x network are available than 3G should be
|
||||||
// displayed, displayed RSSI should be from the EV side.
|
// displayed, displayed RSSI should be from the EV side.
|
||||||
// If a voice call is made then RSSI should switch to 1x.
|
// If a voice call is made then RSSI should switch to 1x.
|
||||||
if ((mPhoneState == TelephonyManager.CALL_STATE_IDLE) && isEvdo()
|
if ((mPhoneState == TelephonyManager.CALL_STATE_IDLE) && isEvdo()
|
||||||
&& !alwaysUseCdmaRssi) {
|
&& !mAlwaysUseCdmaRssi) {
|
||||||
iconLevel = getEvdoLevel();
|
iconLevel = getEvdoLevel();
|
||||||
if (false) {
|
if (false) {
|
||||||
Slog.d(TAG, "use Evdo level=" + iconLevel + " to replace Cdma Level=" + getCdmaLevel());
|
Slog.d(TAG, "use Evdo level=" + iconLevel + " to replace Cdma Level=" + getCdmaLevel());
|
||||||
|
|||||||
Reference in New Issue
Block a user