42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package com.tencent.wxop.stat;
|
|
|
|
import android.content.Context;
|
|
import com.tencent.wxop.stat.common.StatLogger;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class n implements Runnable {
|
|
final /* synthetic */ Context a;
|
|
|
|
n(Context context) {
|
|
this.a = context;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
StatLogger statLogger;
|
|
StatLogger statLogger2;
|
|
Context context = this.a;
|
|
if (context == null) {
|
|
statLogger2 = StatServiceImpl.q;
|
|
statLogger2.error("The Context of StatService.onStop() can not be null!");
|
|
return;
|
|
}
|
|
StatServiceImpl.flushDataToDB(context);
|
|
if (StatServiceImpl.a()) {
|
|
return;
|
|
}
|
|
try {
|
|
Thread.sleep(100L);
|
|
} catch (InterruptedException e) {
|
|
e.printStackTrace();
|
|
}
|
|
if (com.tencent.wxop.stat.common.l.z(this.a)) {
|
|
if (StatConfig.isDebugEnable()) {
|
|
statLogger = StatServiceImpl.q;
|
|
statLogger.i("onStop isBackgroundRunning flushDataToDB");
|
|
}
|
|
StatServiceImpl.commitEvents(this.a, -1);
|
|
}
|
|
}
|
|
}
|