Skip to content

Commit

Permalink
Fix on-queue-passed intent
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevinrob committed Mar 5, 2020
1 parent c6d0646 commit e6bcd3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ private void broadcastChangedQueueUrl(String urlString) {
}

private void broadcastQueuePassed(String queueItToken) {
Intent intent = new Intent("on-queue-passed");
intent.putExtra("queue-it-token-" + initAt, queueItToken);
Intent intent = new Intent("on-queue-passed-" + initAt);
intent.putExtra("queue-it-token", queueItToken);
LocalBroadcastManager.getInstance(QueueActivity.this).sendBroadcast(intent);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ private void registerReceivers()
LocalBroadcastManager.getInstance(_activity).registerReceiver(new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
raiseQueuePassed(intent.getStringExtra("queue-it-token-" + initAt));
}}, new IntentFilter("on-queue-passed"));
raiseQueuePassed(intent.getStringExtra("queue-it-token"));
}}, new IntentFilter("on-queue-passed-" + initAt));

LocalBroadcastManager.getInstance(_activity).registerReceiver(new BroadcastReceiver() {
@Override
Expand Down

0 comments on commit e6bcd3f

Please sign in to comment.