Fix NPE in AppForegroundObserver.

This commit is contained in:
Greyson Parrelli 2021-02-11 00:01:06 -05:00
parent eb79300fe2
commit f50466f779

View file

@ -62,7 +62,7 @@ public final class AppForegroundObserver {
} }
public boolean isForegrounded() { public boolean isForegrounded() {
return isForegrounded; return isForegrounded != null && isForegrounded;
} }
@MainThread @MainThread