Merge "Return display name in SipConnection.getCnapName()." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
b595e094e3
@@ -28,6 +28,7 @@ import android.os.AsyncResult;
|
|||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
import android.telephony.PhoneNumberUtils;
|
import android.telephony.PhoneNumberUtils;
|
||||||
import android.telephony.ServiceState;
|
import android.telephony.ServiceState;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.internal.telephony.Call;
|
import com.android.internal.telephony.Call;
|
||||||
@@ -673,6 +674,18 @@ public class SipPhone extends SipPhoneBase {
|
|||||||
this(owner, callee, getUriString(callee));
|
this(owner, callee, getUriString(callee));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getCnapName() {
|
||||||
|
String displayName = mPeer.getDisplayName();
|
||||||
|
return TextUtils.isEmpty(displayName) ? null
|
||||||
|
: displayName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getNumberPresentation() {
|
||||||
|
return Connection.PRESENTATION_ALLOWED;
|
||||||
|
}
|
||||||
|
|
||||||
void initIncomingCall(SipAudioCall sipAudioCall, Call.State newState) {
|
void initIncomingCall(SipAudioCall sipAudioCall, Call.State newState) {
|
||||||
setState(newState);
|
setState(newState);
|
||||||
mSipAudioCall = sipAudioCall;
|
mSipAudioCall = sipAudioCall;
|
||||||
|
|||||||
Reference in New Issue
Block a user