Skip to content

Commit

Permalink
chat: Move Intent parsing in front of adapter creation
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rg committed Nov 25, 2014
1 parent b12d650 commit edf88a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/yaxim/androidclient/chat/ChatWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public void onCreate(Bundle savedInstanceState) {
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);

setContactFromUri();

// Setup the actual chat view
mListView = (ListView) findViewById(android.R.id.list);
mChatAdapter = new ChatWindowAdapter(null, PROJECTION_FROM, PROJECTION_TO,
Expand All @@ -109,7 +111,6 @@ public void onCreate(Bundle savedInstanceState) {

Log.d(TAG, "registrs for contextmenu...");
registerForContextMenu(mListView);
setContactFromUri();
registerXMPPService();
setSendButton();
setUserInput();
Expand Down

0 comments on commit edf88a3

Please sign in to comment.