Files
rr3-apk/decompiled/sources/com/helpshift/lifecycle/ManualAppLifeCycleTracker.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

40 lines
1.5 KiB
Java

package com.helpshift.lifecycle;
import com.helpshift.core.HSContext;
import com.helpshift.log.HSLogger;
/* loaded from: classes3.dex */
public class ManualAppLifeCycleTracker extends BaseLifeCycleTracker {
public static String TAG = "MALCTracker";
public boolean isAppInForeground;
public ManualAppLifeCycleTracker(HSAppLifeCycleEventsHandler hSAppLifeCycleEventsHandler) {
super(hSAppLifeCycleEventsHandler);
this.isAppInForeground = false;
}
@Override // com.helpshift.lifecycle.BaseLifeCycleTracker
public void onManualAppForegroundAPI() {
if (this.isAppInForeground) {
HSLogger.d(TAG, "Application is already in foreground, so ignore this event");
} else if (HSContext.installCallSuccessful.get()) {
this.isAppInForeground = true;
notifyAppForeground();
} else {
HSLogger.e(TAG, "onManualAppForegroundAPI is called without calling install API");
}
}
@Override // com.helpshift.lifecycle.BaseLifeCycleTracker
public void onManualAppBackgroundAPI() {
if (!this.isAppInForeground) {
HSLogger.d(TAG, "Application is already in background, so ignore this event");
} else if (HSContext.installCallSuccessful.get()) {
this.isAppInForeground = false;
notifyAppBackground();
} else {
HSLogger.e(TAG, "onManualAppBackgroundAPI is called without calling install API");
}
}
}