- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
52 lines
1.6 KiB
Java
52 lines
1.6 KiB
Java
package com.helpshift.lifecycle;
|
|
|
|
import android.app.Application;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class HSAppLifeCycleController {
|
|
public static HSAppLifeCycleController instance;
|
|
public BaseLifeCycleTracker lifeCycleTracker;
|
|
|
|
public static HSAppLifeCycleController getInstance() {
|
|
if (instance == null) {
|
|
instance = new HSAppLifeCycleController();
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
public void init(Application application, boolean z, HSAppLifeCycleEventsHandler hSAppLifeCycleEventsHandler) {
|
|
if (this.lifeCycleTracker != null) {
|
|
return;
|
|
}
|
|
if (z) {
|
|
this.lifeCycleTracker = new ManualAppLifeCycleTracker(hSAppLifeCycleEventsHandler);
|
|
} else {
|
|
this.lifeCycleTracker = new DefaultAppLifeCycleTracker(application, hSAppLifeCycleEventsHandler);
|
|
}
|
|
}
|
|
|
|
public void onManualAppForegroundAPI() {
|
|
BaseLifeCycleTracker baseLifeCycleTracker = this.lifeCycleTracker;
|
|
if (baseLifeCycleTracker == null) {
|
|
return;
|
|
}
|
|
baseLifeCycleTracker.onManualAppForegroundAPI();
|
|
}
|
|
|
|
public void onManualAppBackgroundAPI() {
|
|
BaseLifeCycleTracker baseLifeCycleTracker = this.lifeCycleTracker;
|
|
if (baseLifeCycleTracker == null) {
|
|
return;
|
|
}
|
|
baseLifeCycleTracker.onManualAppBackgroundAPI();
|
|
}
|
|
|
|
public void onAppForeground() {
|
|
BaseLifeCycleTracker baseLifeCycleTracker = this.lifeCycleTracker;
|
|
if (baseLifeCycleTracker == null) {
|
|
return;
|
|
}
|
|
baseLifeCycleTracker.notifyAppForeground();
|
|
}
|
|
}
|