mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
get rid of old standin for missing contact name
Since it's now possible to add a name for an SMS contact added manually, don't assuming a missing name means it was added manually. Just leave blank if not provided.
This commit is contained in:
parent
e3e7add5a9
commit
4e101862a6
2 changed files with 6 additions and 8 deletions
|
@ -364,14 +364,16 @@ public class SMSInviteDelegate extends InviteDelegate {
|
|||
this( null, phone );
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDev() { return m_phone; }
|
||||
|
||||
@Override
|
||||
public boolean equals( InviterItem item )
|
||||
{
|
||||
boolean result = false;
|
||||
if ( null != item && item instanceof PhoneRec ) {
|
||||
if ( null != item && item instanceof PhoneRec ) {
|
||||
PhoneRec rec = (PhoneRec)item;
|
||||
result = m_name.equals(rec.m_name)
|
||||
result = m_name == rec.m_name
|
||||
&& PhoneNumberUtils.compare( m_phone, rec.m_phone );
|
||||
}
|
||||
return result;
|
||||
|
@ -380,10 +382,6 @@ public class SMSInviteDelegate extends InviteDelegate {
|
|||
private PhoneRec( String name, String phone )
|
||||
{
|
||||
m_phone = phone;
|
||||
|
||||
if ( null == name || 0 == name.length() ) {
|
||||
name = getString( R.string.contact_not_found );
|
||||
}
|
||||
m_name = name;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1936,7 +1936,8 @@
|
|||
<string name="summary_conn_sms_fmt">Game in play with %1$s</string>
|
||||
<!-- -->
|
||||
<string name="warn_unlimited">Are you certain this number is on an
|
||||
account with unlimited texting? Click cancel if you are not.</string>
|
||||
account with unlimited texting? Tap \"Cancel\" if you are
|
||||
not.</string>
|
||||
|
||||
<!-- -->
|
||||
<string name="remote_undone">Remote device undid a turn.</string>
|
||||
|
@ -2672,7 +2673,6 @@
|
|||
<!-- In the permissions rationale explanation, means go ahead and
|
||||
have the OS ask for permission -->
|
||||
<string name="button_ask_again">Ask again</string>
|
||||
<string name="contact_not_found">Not in Contacts</string>
|
||||
<!-- Displayed as a toast -->
|
||||
<string name="sms_send_failed">SMS send failed</string>
|
||||
<!-- In the permissions rationale explanation, means don't have the
|
||||
|
|
Loading…
Reference in a new issue