Fix NPE in AppForegroundObserver.
This commit is contained in:
parent
eb79300fe2
commit
f50466f779
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ public final class AppForegroundObserver {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isForegrounded() {
|
public boolean isForegrounded() {
|
||||||
return isForegrounded;
|
return isForegrounded != null && isForegrounded;
|
||||||
}
|
}
|
||||||
|
|
||||||
@MainThread
|
@MainThread
|
||||||
|
|
Loading…
Add table
Reference in a new issue