mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix NPE in AppForegroundObserver.
This commit is contained in:
@@ -62,7 +62,7 @@ public final class AppForegroundObserver {
|
||||
}
|
||||
|
||||
public boolean isForegrounded() {
|
||||
return isForegrounded;
|
||||
return isForegrounded != null && isForegrounded;
|
||||
}
|
||||
|
||||
@MainThread
|
||||
|
||||
Reference in New Issue
Block a user