Fix contacts accent display

This commit is contained in:
Margaux Clerc 2015-02-05 17:48:47 +01:00
parent 5e105aec46
commit 0004438480
2 changed files with 2 additions and 2 deletions

View file

@ -381,7 +381,7 @@ public class ChatActivity extends FragmentActivity implements OnClickListener, S
}
public void dispayMessageList() {
adapter = new ChatMessageAdapter(this, chatRoom.getHistory());
adapter = new ChatMessageAdapter(this.getApplicationContext(), chatRoom.getHistory());
messagesList.setAdapter(adapter);
}

View file

@ -164,7 +164,7 @@ public class ApiFivePlus {
String[] projection = new String[] { Data.CONTACT_ID, Data.DISPLAY_NAME };
String query = Data.DISPLAY_NAME + " IS NOT NULL AND (" + select + ")";
Cursor cursor = cr.query(Data.CONTENT_URI, projection, query, null, Data.DISPLAY_NAME + " COLLATE NOCASE ASC");
Cursor cursor = cr.query(Data.CONTENT_URI, projection, query, null, Data.DISPLAY_NAME + " COLLATE UNICODE ASC");
if (!shouldGroupBy || cursor == null) {
return cursor;