Skip to content

Commit

Permalink
Roster: move server-intent handling to backend-bind
Browse files Browse the repository at this point in the history
  • Loading branch information
ge0rg committed Jul 30, 2014
1 parent 234d4aa commit 9172339
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/org/yaxim/androidclient/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,6 @@ protected void onResume() {

// handle SEND action
handleSendIntent();

// handle imto:https:// intent after restoring service connection
mainHandler.post(new Runnable() {
public void run() {
handleJabberIntent();
}});
}

public void handleSendIntent() {
Expand Down Expand Up @@ -824,6 +818,9 @@ public void onServiceConnected(ComponentName name, IBinder service) {
serviceAdapter.connect();
} else if (mConfig.presence_required && isConnected())
serviceAdapter.setStatusFromConfig();

// handle server-related intents after connecting to the backend
handleJabberIntent();
}

public void onServiceDisconnected(ComponentName name) {
Expand Down

0 comments on commit 9172339

Please sign in to comment.