mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
display phones sorted by contact name.
This commit is contained in:
parent
523af50d1b
commit
d9ba0c4229
1 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,8 @@ import android.widget.EditText;
|
|||
import android.widget.ImageButton;
|
||||
import android.widget.ListView;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Iterator;
|
||||
import junit.framework.Assert;
|
||||
|
||||
|
@ -193,6 +195,11 @@ public class SMSInviteActivity extends InviteActivity {
|
|||
|
||||
private void rebuildList()
|
||||
{
|
||||
Collections.sort(m_phoneRecs,new Comparator<PhoneRec>() {
|
||||
public int compare( PhoneRec rec1, PhoneRec rec2 ) {
|
||||
return rec1.m_name.compareTo(rec2.m_name);
|
||||
}
|
||||
});
|
||||
m_adapter = new SMSPhonesAdapter();
|
||||
setListAdapter( m_adapter );
|
||||
tryEnable();
|
||||
|
|
Loading…
Add table
Reference in a new issue