mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
check items newly imported from contacts
I figure if you just brought it in it's probably to send an invitation to it, and this is how it worked before the refactoring anyway.
This commit is contained in:
parent
0fc528a074
commit
497567ac2d
2 changed files with 8 additions and 9 deletions
|
@ -269,13 +269,9 @@ abstract class InviteDelegate extends ListDelegateBase
|
|||
}
|
||||
}
|
||||
|
||||
// protected void scan() {}
|
||||
|
||||
// callbacks made by InviteItemsAdapter
|
||||
protected void onItemChecked( int index, boolean checked )
|
||||
protected void onItemChecked( InviterItem item, boolean checked )
|
||||
{
|
||||
DbgUtils.logd( TAG, "onItemChecked(%d, %b)", index, checked );
|
||||
InviterItem item = m_adapter.getItems()[index];
|
||||
if ( checked ) {
|
||||
m_checked.add( item );
|
||||
} else {
|
||||
|
@ -283,7 +279,7 @@ abstract class InviteDelegate extends ListDelegateBase
|
|||
}
|
||||
}
|
||||
|
||||
protected InviteItemsAdapter getAdapter()
|
||||
private InviteItemsAdapter getAdapter()
|
||||
{
|
||||
return m_adapter;
|
||||
}
|
||||
|
@ -362,7 +358,7 @@ abstract class InviteDelegate extends ListDelegateBase
|
|||
// // User's now making changes; don't check new views
|
||||
// m_setChecked = false;
|
||||
}
|
||||
onItemChecked( position, isChecked );
|
||||
onItemChecked( item, isChecked );
|
||||
|
||||
tryEnable();
|
||||
}
|
||||
|
|
|
@ -210,8 +210,11 @@ public class SMSInviteDelegate extends InviteDelegate {
|
|||
case POST_WARNING_ACTION:
|
||||
DbgUtils.printStack( TAG );
|
||||
if ( isPositive ) { // ???
|
||||
m_phoneRecs.add( new PhoneRec( (String)params[1],
|
||||
(String)params[0] ) );
|
||||
PhoneRec rec = new PhoneRec( (String)params[1],
|
||||
(String)params[0] );
|
||||
m_phoneRecs.add( rec );
|
||||
clearChecked();
|
||||
onItemChecked( rec, true );
|
||||
saveAndRebuild();
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue