Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix onCurrentSessionChange listener notification on new Session (e.g.…
Browse files Browse the repository at this point in the history
… popup) (#842)
  • Loading branch information
MortimerGoro authored and bluemarvin committed Nov 27, 2018
1 parent cc5f95d commit b92a5e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ public GeckoResult<GeckoSession> onNewSession(@NonNull GeckoSession aSession, @N
if (state != null) {
mCurrentSession = state.mSession;

if (mCurrentSession == aSession) {
if (mCurrentSession != aSession) {
for (SessionChangeListener listener : mSessionChangeListeners) {
listener.onCurrentSessionChange(mCurrentSession, sessionId);
}
Expand Down

0 comments on commit b92a5e6

Please sign in to comment.