Skip to content

Commit

Permalink
Fix NPE in AppForegroundObserver.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Feb 11, 2021
1 parent eb79300 commit f50466f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -62,7 +62,7 @@ public void removeListener(@NonNull Listener listener) {
}

public boolean isForegrounded() {
return isForegrounded;
return isForegrounded != null && isForegrounded;
}

@MainThread
Expand Down

0 comments on commit f50466f

Please sign in to comment.