Skip to content

Commit

Permalink
cobaltians/Cobalt#189 reversing params for subscribe and unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
ggendre committed Apr 25, 2019
1 parent deb9581 commit 93b5417
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ public void onResume()
super.onResume();

PubSub pubsub = PubSub.getInstance();
pubsub.subscribeToChannel(this, JSDoSomeMathsFromWeb);
pubsub.subscribeToChannel(this, JSDoSomeMathsFromNativeResponse);
pubsub.subscribeToChannel(this, JSAutoTestsFromWeb);
pubsub.subscribeToChannel(this, JSAutoTestsFromNativeCallback);
pubsub.subscribeToChannel(JSDoSomeMathsFromWeb, this);
pubsub.subscribeToChannel(JSDoSomeMathsFromNativeResponse, this);
pubsub.subscribeToChannel(JSAutoTestsFromWeb, this);
pubsub.subscribeToChannel(JSAutoTestsFromNativeCallback, this);
}

@Override
Expand All @@ -123,10 +123,10 @@ public void onPause()
super.onPause();

PubSub pubsub = PubSub.getInstance();
pubsub.unsubscribeFromChannel(this, JSDoSomeMathsFromWeb);
pubsub.unsubscribeFromChannel(this, JSDoSomeMathsFromNativeResponse);
pubsub.unsubscribeFromChannel(this, JSAutoTestsFromWeb);
pubsub.unsubscribeFromChannel(this, JSAutoTestsFromNativeCallback);
pubsub.unsubscribeFromChannel(JSDoSomeMathsFromWeb, this);
pubsub.unsubscribeFromChannel(JSDoSomeMathsFromNativeResponse, this);
pubsub.unsubscribeFromChannel(JSAutoTestsFromWeb, this);
pubsub.unsubscribeFromChannel(JSAutoTestsFromNativeCallback, this);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ public void onResume()
{
super.onResume();

PubSub.getInstance().subscribeToChannel(this, JSNameHello);
PubSub.getInstance().subscribeToChannel(JSNameHello, this);
}

@Override
public void onPause()
{
super.onPause();

PubSub.getInstance().unsubscribeFromChannel(this, JSNameHello);
PubSub.getInstance().unsubscribeFromChannel(JSNameHello, this);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion cobalt

0 comments on commit 93b5417

Please sign in to comment.