Only display username if unknown caller accourding to custom boolean value
This commit is contained in:
parent
dfc8d92965
commit
327f2c72aa
2 changed files with 3 additions and 4 deletions
|
@ -13,7 +13,6 @@
|
|||
<bool name="disable_animations">false</bool>
|
||||
<bool name="lock_statusbar">false</bool>
|
||||
<bool name="only_display_username_if_unknown">true</bool>
|
||||
<bool name="show_full_remote_address_on_incoming_call">true</bool>
|
||||
<bool name="display_messages_time">true</bool> <!-- Used to show the time of each message arrival -->
|
||||
|
||||
<bool name="allow_ringing_while_early_media">true</bool>
|
||||
|
|
|
@ -97,10 +97,10 @@ public class IncomingCallActivity extends Activity implements LinphoneOnCallStat
|
|||
|
||||
// To be done after findUriPictureOfContactAndSetDisplayName called
|
||||
mNameView.setText(address.getDisplayName());
|
||||
if (getResources().getBoolean(R.bool.show_full_remote_address_on_incoming_call)) {
|
||||
mNumberView.setText(address.asStringUriOnly());
|
||||
} else {
|
||||
if (getResources().getBoolean(R.bool.only_display_username_if_unknown)) {
|
||||
mNumberView.setText(address.getUserName());
|
||||
} else {
|
||||
mNumberView.setText(address.asStringUriOnly());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue