Merge "Don't waste resources creating new Boolean objects"
This commit is contained in:
@@ -934,13 +934,13 @@ public class CDMAPhone extends PhoneBase {
|
||||
switch(action) {
|
||||
case CANCEL_ECM_TIMER:
|
||||
removeCallbacks(mExitEcmRunnable);
|
||||
mEcmTimerResetRegistrants.notifyResult(new Boolean(true));
|
||||
mEcmTimerResetRegistrants.notifyResult(Boolean.TRUE);
|
||||
break;
|
||||
case RESTART_ECM_TIMER:
|
||||
long delayInMillis = SystemProperties.getLong(
|
||||
TelephonyProperties.PROPERTY_ECM_EXIT_TIMER, DEFAULT_ECM_EXIT_TIMER_VALUE);
|
||||
postDelayed(mExitEcmRunnable, delayInMillis);
|
||||
mEcmTimerResetRegistrants.notifyResult(new Boolean(false));
|
||||
mEcmTimerResetRegistrants.notifyResult(Boolean.FALSE);
|
||||
break;
|
||||
default:
|
||||
Log.e(LOG_TAG, "handleTimerInEmergencyCallbackMode, unsupported action " + action);
|
||||
|
||||
@@ -101,12 +101,12 @@ abstract class SipPhoneBase extends PhoneBase {
|
||||
}
|
||||
|
||||
protected void startRingbackTone() {
|
||||
AsyncResult result = new AsyncResult(null, new Boolean(true), null);
|
||||
AsyncResult result = new AsyncResult(null, Boolean.TRUE, null);
|
||||
mRingbackRegistrants.notifyRegistrants(result);
|
||||
}
|
||||
|
||||
protected void stopRingbackTone() {
|
||||
AsyncResult result = new AsyncResult(null, new Boolean(false), null);
|
||||
AsyncResult result = new AsyncResult(null, Boolean.FALSE, null);
|
||||
mRingbackRegistrants.notifyRegistrants(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user