- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
32 lines
1.2 KiB
Java
32 lines
1.2 KiB
Java
package com.helpshift.lifecycle;
|
|
|
|
import com.helpshift.core.HSContext;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class HSAppLifeCycleEventsHandler {
|
|
public void onAppForeground() {
|
|
HSContext.getInstance().getHsThreadingService().runSerial(new Runnable() { // from class: com.helpshift.lifecycle.HSAppLifeCycleEventsHandler.1
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
HSContext hSContext = HSContext.getInstance();
|
|
hSContext.getAnalyticsEventDM().sendAppLaunchEvent();
|
|
hSContext.getAnalyticsEventDM().sendFailedEvents();
|
|
hSContext.sendMigrationFailureLogs();
|
|
if (hSContext.getUserManager().retryPushTokenSync()) {
|
|
return;
|
|
}
|
|
hSContext.getConversationPoller().startPoller();
|
|
}
|
|
});
|
|
}
|
|
|
|
public void onAppBackground() {
|
|
HSContext.getInstance().getHsThreadingService().runSerial(new Runnable() { // from class: com.helpshift.lifecycle.HSAppLifeCycleEventsHandler.2
|
|
@Override // java.lang.Runnable
|
|
public void run() {
|
|
HSContext.getInstance().getConversationPoller().stopPoller();
|
|
}
|
|
});
|
|
}
|
|
}
|