Updated Bugsnag

This commit is contained in:
M66B
2021-06-01 07:34:31 +02:00
parent 21d8652947
commit 7202865777
14 changed files with 213 additions and 76 deletions

View File

@@ -369,21 +369,8 @@ class SessionTracker extends BaseObservable {
return foregroundDetector.isInForeground();
}
//FUTURE:SM This shouldnt be here
@Nullable
Long getDurationInForegroundMs(long nowMs) {
long durationMs = 0;
long sessionStartTimeMs = lastEnteredForegroundMs.get();
Boolean inForeground = isInForeground();
if (inForeground == null) {
return null;
}
if (inForeground && sessionStartTimeMs != 0) {
durationMs = nowMs - sessionStartTimeMs;
}
return durationMs > 0 ? durationMs : 0;
long getLastEnteredForegroundMs() {
return lastEnteredForegroundMs.get();
}
@Nullable