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

Commit

Permalink
Prevent duplicated setActive(false) calls
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed May 14, 2020
1 parent 1477554 commit db7c945
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,9 @@ public void goForward() {
}

public void setActive(boolean aActive) {
if (mState.mSession != null && mState.isActive() == aActive) {
return;
}
// Flush the events queued while the session was inactive
if (mState.mSession != null && !mState.isActive() && aActive) {
flushQueuedEvents();
Expand Down

0 comments on commit db7c945

Please sign in to comment.