mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-22 06:08:09 +00:00
Improved bis function
This commit is contained in:
parent
032f871d47
commit
34ba2f0204
1 changed files with 8 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ import org.linphone.R;
|
|||
import org.linphone.core.CallDirection;
|
||||
import org.linphone.core.LinphoneCallLog;
|
||||
import org.linphone.core.LinphoneCoreException;
|
||||
import org.linphone.core.LinphoneProxyConfig;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
|
@ -65,7 +66,13 @@ public class CallButton extends ImageView implements OnClickListener, AddressAwa
|
|||
if (log == null) {
|
||||
return;
|
||||
}
|
||||
mAddress.setText(log.getTo().asStringUriOnly());
|
||||
|
||||
LinphoneProxyConfig lpc = LinphoneManager.getLc().getDefaultProxyConfig();
|
||||
if (lpc != null && log.getTo().getDomain().equals(lpc.getDomain())) {
|
||||
mAddress.setText(log.getTo().getUserName());
|
||||
} else {
|
||||
mAddress.setText(log.getTo().asStringUriOnly());
|
||||
}
|
||||
mAddress.setDisplayedName(log.getTo().getDisplayName());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue